3v4l.org

run code in 200+ php & hhvm versions
<?php $a = [ 1, 2, , 3 ];
Output for 7.1.0 - 7.2.6
Fatal error: Cannot use empty array elements in arrays in /in/WJUbZ on line 3
Process exited with code 255.
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.0.30
Parse error: syntax error, unexpected ',', expecting ']' in /in/WJUbZ on line 5
Process exited with code 255.
Output for hhvm-3.22.0
Fatal error: Uncaught Error: syntax error, unexpected ',', expecting ']' in /in/WJUbZ:-1 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.18.5 - 3.21.3
Fatal error: Uncaught Error: syntax error, unexpected ',', expecting ']' in /in/WJUbZ:5 Stack trace: #0 {main}
Process exited with code 255.