3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [ 1, 2, , 3 ];
Output for 7.1.0 - 7.1.17, 7.2.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 7.0.0 - 7.0.30
Parse error: syntax error, unexpected ',', expecting ']' in /in/WJUbZ on line 5
Process exited with code 255.

preferences:
33.17 ms | 456 KiB | 5 Q