3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr=Array ( "1" => Array ( "1" => "c1", "2" => "c1", "3" => "c1", "4" => "c1", "5" => "c1", "6" => "c1", "7" => "c1", "8" => "c1", "9" => "c1", "10" => "c1", "11" => "c1", "12" => "c1" ), "10" => Array ( "1" => "c2", "2" => "c2", "3" => "c2", "4" => "c2", "5" => "c2", "6" => "c2", "7" => "c2", "8" => "c2", "9" => "c2", "10" => "c2", "11" => "c2", "12" => "c2" ) ); echo json_encode( array_map( null, array_keys(current($arr)), ...$arr ), JSON_PRETTY_PRINT );
Output for git.master, git.master_jit, rfc.property-hooks
[ [ 1, "c1", "c2" ], [ 2, "c1", "c2" ], [ 3, "c1", "c2" ], [ 4, "c1", "c2" ], [ 5, "c1", "c2" ], [ 6, "c1", "c2" ], [ 7, "c1", "c2" ], [ 8, "c1", "c2" ], [ 9, "c1", "c2" ], [ 10, "c1", "c2" ], [ 11, "c1", "c2" ], [ 12, "c1", "c2" ] ]

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:
97.51 ms | 407 KiB | 5 Q