3v4l.org

run code in 200+ php & hhvm versions
<?php // Before $foo = array ('bar', 'baz'); // Expected $foo = [ 'bar', 'baz', ]; // or $foo = ['bar', 'baz']; // Actual $foo = ['bar', 'baz'];
based on 3m53q
Output for 7.1.25 - 7.3.5