3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A { public $a = ''; protected $b = ''; private $c = ''; } class B { public $a = ''; protected $b = ''; private $c = ''; } var_dump(md5(serialize(new Class A())) === md5(serialize(new Class B())));
Output for 5.4.0 - 5.4.19
Parse error: syntax error, unexpected 'Class' (T_CLASS) in /in/QEFV6 on line 25
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_CLASS in /in/QEFV6 on line 25
Process exited with code 255.