3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { public $bar; } class Bar extends Foo { private $bar; }
Output for 5.3.0 - 5.4.20
Fatal error: Access level to Bar::$bar must be public (as in class Foo) in /in/2mkI7 on line 11
Process exited with code 255.