3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Pizza { protected $size; } class PanPizza extends Pizza { private $size; } new Pizza; new PanPizza;
Output for 5.3.0 - 5.4.21
Fatal error: Access level to PanPizza::$size must be protected (as in class Pizza) or weaker in /in/R5nZ6 on line 10
Process exited with code 255.