3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data[0][1][tot_km] = aray(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 7.0.0 - 7.1.0
Notice: Use of undefined constant tot_km - assumed 'tot_km' in /in/JQUg9 on line 2 Fatal error: Uncaught Error: Call to undefined function aray() in /in/JQUg9:2 Stack trace: #0 {main} thrown in /in/JQUg9 on line 2
Process exited with code 255.
Output for 5.3.28 - 5.3.29, 5.4.20 - 5.6.28, hhvm-3.10.0 - 3.12.0
Notice: Use of undefined constant tot_km - assumed 'tot_km' in /in/JQUg9 on line 2 Fatal error: Call to undefined function aray() in /in/JQUg9 on line 2
Process exited with code 255.
Output for 5.0.0 - 5.3.27, 5.4.0 - 5.4.19
Notice: Use of undefined constant tot_km - assumed 'tot_km' in /in/Ej0SN on line 2 Fatal error: Call to undefined function aray() in /in/Ej0SN on line 2
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Notice: Use of undefined constant tot_km - assumed 'tot_km' in /in/Ej0SN on line 2 Fatal error: Call to undefined function: aray() in /in/Ej0SN on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Notice: Use of undefined constant tot_km - assumed 'tot_km' in /in/Ej0SN on line 2 Fatal error: Call to undefined function: aray() in /in/Ej0SN on line 2
Process exited with code 255.
Output for 4.3.1
Notice: Use of undefined constant tot_km - assumed 'tot_km' in /in/Ej0SN on line 2 Fatal error: Call to undefined function: aray() in /in/Ej0SN on line 2
Output for 4.3.0
Notice: Use of undefined constant tot_km - assumed 'tot_km' in /in/JQUg9 on line 2 Fatal error: Call to undefined function: aray() in /in/JQUg9 on line 2