3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $b = (function_exists('define')); if ($b) { define('A', 100); $f = 'define'; $f('B', $f); class A { } } var_dump(method_exists('A::__constructor'));
based on vOsfu
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Warning: method_exists() expects exactly 2 parameters, 1 given in /in/MR02V on line 15 NULL
Output for 4.3.0 - 5.2.17
Warning: Wrong parameter count for method_exists() in /in/MR02V on line 15 NULL