3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = array ('bar', 'baz'); $foo = [ 'bar', 'baz', ]
Output for 7.1.25 - 7.1.28, 7.2.0 - 7.2.18, 7.3.0 - 7.3.5
Parse error: syntax error, unexpected end of file in /in/TBPLd on line 9
Process exited with code 255.

preferences:
182.29 ms | 1395 KiB | 36 Q