3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $bar = 'baz'; define('FOO', &$bar); var_dump(FOO); $bar = 'quux'; var_dump(FOO);
Output for 5.4.0 - 5.4.19
Fatal error: Call-time pass-by-reference has been removed in /in/6KHXe on line 3
Process exited with code 255.
Output for 5.3.28 - 5.3.29
Deprecated: Call-time pass-by-reference has been deprecated in /in/aqCJF on line 3 string(3) "baz" string(3) "baz"
Output for 5.3.0 - 5.3.27
Deprecated: Call-time pass-by-reference has been deprecated in /in/6KHXe on line 3 string(3) "baz" string(3) "baz"