3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class MyClass { public $prop; } $foo = new MyClass(); $foo->prop = 'test1'; $bar = $foo; $test = array($foo, $bar); var_dump(array_unique($test, SORT_REGULAR);
Output for 5.3.0 - 5.4.17
Parse error: syntax error, unexpected ';' in /in/KGtJE on line 14
Process exited with code 255.