3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Foo() { } class Bar() { public function __construct() { $foo = new Foo(); var_dump($foo); Tool::deleteMe($foo); var_dump($foo); } } class Tool { public static function deleteMe(&$obj) { unset($obj); } } $foo = new Foo();
Output for 5.3.0 - 5.4.26
Parse error: syntax error, unexpected '(', expecting '{' in /in/ORYVM on line 5
Process exited with code 255.