3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data[0][1]['tot_km'] = array(array("0" => 52, "1" => 23), array('tot_km' => Array('0' => 46))); $data[1][1] = array('tot_km' => array('0' => 38, '1' => 22, '2' => 40)); $data[1][2] = array('tot_km' => array('0' => -395, '1' => 28)); print_r($data);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [1] => Array ( [tot_km] => Array ( [0] => Array ( [0] => 52 [1] => 23 ) [1] => Array ( [tot_km] => Array ( [0] => 46 ) ) ) ) ) [1] => Array ( [1] => Array ( [tot_km] => Array ( [0] => 38 [1] => 22 [2] => 40 ) ) [2] => Array ( [tot_km] => Array ( [0] => -395 [1] => 28 ) ) ) )

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:
65.68 ms | 403 KiB | 8 Q