3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class SomeClass { public $prop0 = 333; protected $prop1 = 555; private $prop2 = 777; } var_dump( new ReflectionProperty'SomeClass', 'prop2') );
Output for 5.4.0 - 5.5.8
Parse error: syntax error, unexpected ''SomeClass'' (T_CONSTANT_ENCAPSED_STRING) in /in/KTMCW on line 9
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /in/KTMCW on line 9
Process exited with code 255.