3v4l.org

run code in 200+ 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.25 - 5.3.26, 5.4.16
Fatal error: Non-abstract method A::foo() must contain body in /in/M583u on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.24, 5.4.0 - 5.4.15
Fatal error: Non-abstract method A::foo() must contain body in 1V5dN on line 4
Process exited with code 255.