3v4l.org

run code in 300+ PHP versions simultaneously
<?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 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Fatal error: Uncaught Error: Undefined constant "tot_km" in /in/JQUg9:2 Stack trace: #0 {main} thrown in /in/JQUg9 on line 2
Process exited with code 255.
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Warning: Use of undefined constant tot_km - assumed 'tot_km' (this will throw an Error in a future version of PHP) 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 7.0.0 - 7.0.20, 7.1.0 - 7.1.33
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.4.45, 5.5.24 - 5.5.35, 5.6.7 - 5.6.28
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.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.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.3.11, 4.4.0 - 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

preferences:
240.5 ms | 401 KiB | 359 Q