3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ ['a' => 1, 'b' => 'x', 'c' => true], ['b' => 'y', 'a' => '2', 'c' => false], ['c' => null, 'b' => 'z', 'a' => 3] ]; var_export( array_combine( array_keys($array[array_key_first($array)]), array_map(null, ...$array) ) );
Output for git.master, git.master_jit, rfc.property-hooks
array ( 'a' => array ( 0 => 1, 1 => 'y', 2 => NULL, ), 'b' => array ( 0 => 'x', 1 => '2', 2 => 'z', ), 'c' => array ( 0 => true, 1 => false, 2 => 3, ), )

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:
50.14 ms | 405 KiB | 5 Q