3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A { public function foo(); } class B extends A { public function bar(); } $ref = new ReflectionClass('B'); var_dump( $ref->hasMethod('foo'));
Output for 5.3.0 - 5.4.16
Fatal error: Non-abstract method A::foo() must contain body in /in/M583u on line 4
Process exited with code 255.