3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array ( array ( 'dnu' => 121428, 'd1' => 43, 'd3' => 27, 'd7' => 20, 'd15' => 15, 'd30' => 12 ) ); print_r($array); $result = []; foreach($array[0] as $key=>$value){ $result[] = ['col'=>$key,'value'=>$value]; } echo json_encode($result);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [dnu] => 121428 [d1] => 43 [d3] => 27 [d7] => 20 [d15] => 15 [d30] => 12 ) ) [{"col":"dnu","value":121428},{"col":"d1","value":43},{"col":"d3","value":27},{"col":"d7","value":20},{"col":"d15","value":15},{"col":"d30","value":12}]

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