3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class P{ public $foo; } class C extends P { public $lol; public function getFields() { var_dump(array_keys(get_class_vars(get_class(__CLASS__::parent)))); return array_keys(get_class_vars(__CLASS__)); } } $c = new C(); var_dump($c->getFields());
Output for 5.4.0 - 5.5.0
Parse error: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM) in /in/F1u5f on line 12
Process exited with code 255.
Output for 5.3.0 - 5.3.26
Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /in/F1u5f on line 12
Process exited with code 255.