3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = []; $array = [ 'json' => [ 'query' => <<<'TEST' BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH TEST; ], ]; var_dump($array);
Output for 8.0.1 - 8.0.16, 8.1.0 - 8.1.3
Parse error: syntax error, unexpected token ";", expecting "]" in /in/SYK9a on line 11
Process exited with code 255.
Output for 7.4.0 - 7.4.28
Parse error: syntax error, unexpected ';', expecting ']' in /in/SYK9a on line 11
Process exited with code 255.

preferences:
150.31 ms | 1279 KiB | 6 Q