3v4l.org

run code in 150+ 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->y();
Output for 4.3.0 - 7.1.0
b