3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = [1, 2,, 3];
based on ELHdk
Output for 7.1.0 - 7.1.7
Fatal error: Cannot use empty array elements in arrays in /in/9ZHlE on line 3
Process exited with code 255.
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.0.20
Parse error: syntax error, unexpected ',', expecting ']' in /in/9ZHlE on line 3
Process exited with code 255.
Output for hhvm-3.15.4
Fatal error: Uncaught Error: syntax error, unexpected ',', expecting ']' in /in/9ZHlE:3 Stack trace: #0 {main}
Process exited with code 255.