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/cDFAW on line 3
Process exited with code 255.