3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A { protected $a; } class B extends A { private $a; public function square() { echo $a * $a; } }
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.3.0 - 5.4.28
Fatal error: Access level to B::$a must be protected (as in class A) or weaker in /in/LL0YU on line 12
Process exited with code 255.