3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { function x() { $this->y(); } function y() { echo 'a'; } } class B extends A { function y() { echo 'b'; } } $b = new B(); $b->x();
Output for 4.3.0 - 7.2.0
b