3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array( array('1','2','3'), array('4','5','6'), array('7','8','9') ); echo a[0][2];
Output for 7.2.0
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 5.6.8 - 7.1.10
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.3.20 - 5.5.35
Parse error: syntax error, unexpected '[', expecting ',' or ';' in /in/K4llq on line 12
Process exited with code 255.