3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { const AA = 'aaa'; public function c() { echo static::AA; } } class B extends A { const AA = 'fy'; } $b = new B(); $b->c();
based on tp5SI
Output for 5.3.19 - 7.2.0
fy