3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { const x = '3.1415'; } class B extends A { public function getX() { return $this->x; } } $b = new B; echo $b->getX();
based on rtVZl
Output for 5.6.0 - 7.3.0alpha1
Notice: Undefined property: B::$x in /in/rjXeY on line 8