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 { function hello() { echo 'hello from bar'; } } class Cheese extends Bar { public static function deleteMe(&$obj) { debug_zval_dump(&$obj); unset($obj); } } $foo = new Bar(); Cheese::deleteMe($foo); gc_collect_cycles(); $foo->hello();
Output for 5.4.0 - 5.4.26
Fatal error: Call-time pass-by-reference has been removed in /in/Oahva on line 29
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING in /in/Oahva on line 4
Process exited with code 255.