3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function &test() { $result = 'test'; return $result; } $retour = &test(); echo $retour; $retour = 'coucou'; echo retour();
Output for 7.0.0 - 7.1.0
test Fatal error: Uncaught Error: Call to undefined function retour() in /in/0Hsc9:11 Stack trace: #0 {main} thrown in /in/0Hsc9 on line 11
Process exited with code 255.
Output for 5.0.0 - 5.6.28
test Fatal error: Call to undefined function retour() in /in/0Hsc9 on line 11
Process exited with code 255.
Output for 4.4.5 - 4.4.9
test Fatal error: Call to undefined function: retour() in /in/0Hsc9 on line 11
Process exited with code 255.
Output for 4.3.2 - 4.4.4
test Fatal error: Call to undefined function: retour() in /in/0Hsc9 on line 11
Process exited with code 255.
Output for 4.3.0 - 4.3.1
test Fatal error: Call to undefined function: retour() in /in/0Hsc9 on line 11