<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/new-in-php-8-6-faster-array-map-with-first-class-callables-q4tupjhnk" -->

---
title: New in PHP 8.6: Faster array_map with first-class callables
description: PHP 8.6 introduces a performance improvement for array_map when used with first-class callables. A video by Tideways demonstrates how this change speeds up the...
canonical: https://daily.dev/posts/new-in-php-8-6-faster-array-map-with-first-class-callables-q4tupjhnk
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: New in PHP 8.6: Faster array_map with first-class callables | daily.dev
og:description: PHP 8.6 introduces a performance improvement for array_map when used with first-class callables. A video by Tideways demonstrates how this change speeds up the...
og:url: https://daily.dev/posts/new-in-php-8-6-faster-array-map-with-first-class-callables-q4tupjhnk
og:image: https://api.daily.dev/og/posts/Q4tuPjHNk.png
og:image:alt: New in PHP 8.6: Faster array_map with first-class callables
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# New in PHP 8.6: Faster array_map with first-class callables

**[FREEK.DEV](https://daily.dev/sources/freek)** · 1 min read · 15 upvotes · 1 comments

## Summary

PHP 8.6 introduces a performance improvement for array_map when used with first-class callables. A video by Tideways demonstrates how this change speeds up the function in practice.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://freek.dev/3162-new-in-php-86-faster-array-map-with-first-class-callables>

## Questions this post answers

### Does PHP 8.6 make array_map faster when using first-class callables?

Yes, PHP 8.6 introduces a performance improvement to array_map specifically when first-class callable syntax is used, such as array_map(strtoupper(...), $array). The exact benchmark numbers and technical mechanism behind the speedup are demonstrated in a dedicated video walkthrough by Tideways rather than detailed in text form here.

_Developers tracking PHP performance changes ahead of an 8.6 upgrade can follow updates like this on daily.dev._

## Similar posts on daily.dev

- [Partial Function Application is coming in PHP 8.6](https://daily.dev/posts/partial-function-application-is-coming-in-php-8-6-3doqxg6cm) · FREEK.DEV · 41 upvotes · 0 comments
- [What's new in PHP 8.6](https://daily.dev/posts/what-s-new-in-php-8-6-eixar55ou) · stitcher.io · 103 upvotes · 7 comments

---

Tags: [#performance](https://daily.dev/tags/performance), [#php](https://daily.dev/tags/php)

[View this post on daily.dev](https://daily.dev/posts/new-in-php-8-6-faster-array-map-with-first-class-callables-q4tupjhnk)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"New in PHP 8.6: Faster array_map with first-class callables","url":"https://daily.dev/posts/new-in-php-8-6-faster-array-map-with-first-class-callables-q4tupjhnk","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/new-in-php-8-6-faster-array-map-with-first-class-callables-q4tupjhnk"},"datePublished":"2026-07-15T12:32:27.229Z","dateModified":"2026-09-14T07:37:39.676Z","description":"PHP 8.6 introduces a performance improvement for array_map when used with first-class callables. A video by Tideways demonstrates how this change speeds up the...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/75a6025d3e2f432cbae78c602c613f8e?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/75a6025d3e2f432cbae78c602c613f8e?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"FREEK.DEV","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"FREEK.DEV","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/286e833d1aaa453d99849cd4dbb7a106","url":"https://daily.dev/sources/freek"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/new-in-php-8-6-faster-array-map-with-first-class-callables-q4tupjhnk","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":15},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"performance,php","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"FREEK.DEV","item":"https://daily.dev/sources/freek"},{"@type":"ListItem","position":3,"name":"New in PHP 8.6: Faster array_map with first-class callables"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/new-in-php-8-6-faster-array-map-with-first-class-callables-q4tupjhnk#faq","mainEntity":[{"@type":"Question","name":"Does PHP 8.6 make array_map faster when using first-class callables?","acceptedAnswer":{"@type":"Answer","text":"Yes, PHP 8.6 introduces a performance improvement to array_map specifically when first-class callable syntax is used, such as array_map(strtoupper(...), $array). The exact benchmark numbers and technical mechanism behind the speedup are demonstrated in a dedicated video walkthrough by Tideways rather than detailed in text form here. Developers tracking PHP performance changes ahead of an 8.6 upgrade can follow updates like this on daily.dev."}}]}
```

