3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Parent{ public $foo; } class child extends Parent{ public $lol; public function getFields() { return array_keys(get_class_vars(__CLASS__)); } } $c = child(); var_dump($c->getFields());
Output for 5.3.0 - 5.4.16
Fatal error: Cannot use 'Parent' as class name as it is reserved in /in/0gtE5 on line 3
Process exited with code 255.