3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { public function bar() { return parent; } } class Bar extends Foo { } $bar = new Bar(); var_dump($bar->bar());
Output for 7.2.0
Warning: Use of undefined constant parent - assumed 'parent' (this will throw an Error in a future version of PHP) in /in/PXsRZ on line 5 string(6) "parent"
Output for 5.3.17 - 7.1.10
Notice: Use of undefined constant parent - assumed 'parent' in /in/PXsRZ on line 5 string(6) "parent"