3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php abstract class BaseCls{ protected $var = 1; protected abstract function getName($param); } class ChildCls extends BaseCls{ private $var = 2; protected function getName($param){ } }
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.3.0 - 5.4.25
Fatal error: Access level to ChildCls::$var must be protected (as in class BaseCls) or weaker in /in/LuXXv on line 12
Process exited with code 255.