3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A{ function x() { echo 'xxx'; } } class B extends A { function x() { echo 'xxx'; parent::x(); } } $b = new B(); $b->x();
Output for 4.3.0 - 7.1.0
xxxxxx