3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public $a; protected $b; protected $c; } class B extends A { function doIt() { return $this->a + $this->b + $this->c; } } $b = new B(); echo $b->doIt();
based on C3O56
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.6
0