3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php trait Foo { public $hidden; function __call($name, $arguments) { echo 'hello from overload'; } } class Bar { use Foo; 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/9jGNu on line 37
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING in /in/9jGNu on line 3
Process exited with code 255.