3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public $a = new stdClass; public $b; } $a = new A; $a->b = $a; var_dump(serialize([$new stdClass, $a]));
based on uN3U3
Output for 7.0.0
Parse error: syntax error, unexpected 'stdClass' (T_STRING), expecting ']' in /in/cBvaG on line 11
Process exited with code 255.
Output for 5.4.10 - 5.6.16
Parse error: syntax error, unexpected 'new' (T_NEW) in /in/cBvaG on line 4
Process exited with code 255.
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected T_NEW in /in/cBvaG on line 4
Process exited with code 255.