3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class X { public $name; function __invoke() {} } class Wrapper { public $x; } $wrapper = new Wrapper; $wrapper->x = new X; $wrapper->x->name = 'THENAME'; var_dump(unserialize(serialize($wrapper));
Output for 5.3.0 - 5.4.29
Parse error: syntax error, unexpected ';' in /in/vVh0J on line 14
Process exited with code 255.