3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array( array('1','2','3'), array('4','5','6'), array('7','8','9') ); echo a[0][2];
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 "a" in /in/K4llq:12 Stack trace: #0 {main} thrown in /in/K4llq on line 12
Process exited with code 255.
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33
Warning: Use of undefined constant a - assumed 'a' (this will throw an Error in a future version of PHP) in /in/K4llq on line 12 Notice: Uninitialized string offset: 2 in /in/K4llq on line 12
Output for 7.3.32 - 7.3.33
Warning: Use of undefined constant a - assumed 'a' (this will throw an Error in a future version of PHP) in /in/K4llq on line 12
Output for 5.6.0 - 5.6.38, 7.0.0 - 7.0.33, 7.1.0 - 7.1.25
Notice: Use of undefined constant a - assumed 'a' in /in/K4llq on line 12 Notice: Uninitialized string offset: 2 in /in/K4llq on line 12
Output for 5.5.0 - 5.5.38
Parse error: syntax error, unexpected '[', expecting ',' or ';' in /in/K4llq on line 12
Process exited with code 255.

preferences:
239.86 ms | 401 KiB | 294 Q