3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = 'abcc'; echo str_replace('c', 'd', &$a);
Output for 5.4.18
Fatal error: Call-time pass-by-reference has been removed in /in/S0doj on line 3
Process exited with code 255.
Output for 5.4.0 - 5.4.17
Fatal error: Call-time pass-by-reference has been removed in /in/2P7Zt 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/S0doj on line 3 abdd
Output for 5.3.0 - 5.3.27
Deprecated: Call-time pass-by-reference has been deprecated in /in/2P7Zt on line 3 abdd