3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array_map(function($a) { return array_column($a, null); }, [['a' => 1]. ['b' => 2]]); var_dump($a);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Array to string conversion in /in/cAK4i on line 5 Warning: Array to string conversion in /in/cAK4i on line 5 Fatal error: Uncaught TypeError: array_column(): Argument #1 ($array) must be of type array, string given in /in/cAK4i:4 Stack trace: #0 /in/cAK4i(4): array_column('ArrayArray', NULL) #1 [internal function]: {closure}('ArrayArray') #2 /in/cAK4i(3): array_map(Object(Closure), Array) #3 {main} thrown in /in/cAK4i on line 4
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
49.94 ms | 401 KiB | 8 Q