3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Bar { function hello() { echo 'hello from bar'; } } class Cheese { static function deleteMe($obj) { unset($obj); } } $foo = new Bar(); Cheese::deleteMe(&$foo); $foo->hello();
Output for 5.4.0 - 5.4.26
Fatal error: Call-time pass-by-reference has been removed in /in/Mn1SD on line 26
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Deprecated: Call-time pass-by-reference has been deprecated in /in/Mn1SD on line 26 hello from bar