3v4l.org

run code in 300+ PHP versions simultaneously
<?php // A reference can be taken to a key that doesn’t exist within an undefined variable (which becomes an array). Using a non-existent array // normally issues a notice, but this does not. $ref = $array[&$key]; var_dump($array,$ref);
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.26
Parse error: syntax error, unexpected '&', expecting ']' in /in/La4a1 on line 4
Process exited with code 255.

preferences:
184.38 ms | 1395 KiB | 63 Q