3v4l.org

run code in 300+ PHP versions simultaneously
<?php $results = array ( 0 => array ( 'id' => 1, 'name' => 'a', 'country' => 'x' ), 1 => array ( 'id' => 2, 'name' => 'b', 'country' => 'y' ) ); array_unshift($results, array_combine(array_keys($results[0]), array_keys($results[0]))); print_r($results);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [id] => id [name] => name [country] => country ) [1] => Array ( [id] => 1 [name] => a [country] => x ) [2] => Array ( [id] => 2 [name] => b [country] => y ) )

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:
72.68 ms | 406 KiB | 5 Q