3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Grandparent{ protected static $data = array( 'default', ); protected static function filter(){ var_dump(self::$data); } } class Parent extends Grandparent{ protected static $data = array( 'one', 'two', ); } class Child extends Parent{ } child::filter();
Output for 5.3.7 - 5.4.30
Fatal error: Cannot use 'Parent' as class name as it is reserved in /in/9GqhV on line 12
Process exited with code 255.