3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL | E_STRICT); abstract class Test { public function jemoederTest($test = 'jemoeder') { echo 'testing'; } } class Jemoeder extends Test { public function jemoederTest($test) { echo 'test'; } } class Jevader extends Test { public function jemoederTest($test = 'jevader') { echo $test; } } $class = new ReflectionClass('Jemoeder'); var_dump($class->getParentClass()); $class2 = new ReflectionClass('Jevader'); var_dump($class2->getParentClass());
based on saDCP
Output for 7.0.0 - 7.2.0
Warning: Declaration of Jemoeder::jemoederTest($test) should be compatible with Test::jemoederTest($test = 'jemoeder') in /in/dIceo on line 17 object(ReflectionClass)#2 (1) { ["name"]=> string(4) "Test" } object(ReflectionClass)#3 (1) { ["name"]=> string(4) "Test" }
Output for 5.4.12 - 5.6.28
Strict Standards: Declaration of Jemoeder::jemoederTest() should be compatible with Test::jemoederTest($test = 'jemoeder') in /in/dIceo on line 17 object(ReflectionClass)#2 (1) { ["name"]=> string(4) "Test" } object(ReflectionClass)#3 (1) { ["name"]=> string(4) "Test" }
Output for 5.3.22 - 5.3.29
Strict Standards: Declaration of Jemoeder::jemoederTest() should be compatible with that of Test::jemoederTest() in /in/dIceo on line 17 object(ReflectionClass)#2 (1) { ["name"]=> string(4) "Test" } object(ReflectionClass)#3 (1) { ["name"]=> string(4) "Test" }