3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $var1 = 'Hello World'; $var2 = ''; $var2 =& $var1; debug_zval_dump(&$var1);
Output for 7.0.0 - 7.1.0
Parse error: syntax error, unexpected '&' in /in/qOEEW on line 8
Process exited with code 255.
Output for 5.4.0 - 5.6.29
Fatal error: Call-time pass-by-reference has been removed in /in/qOEEW on line 8
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Deprecated: Call-time pass-by-reference has been deprecated in /in/qOEEW on line 8 &string(11) "Hello World" refcount(3)