3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $foo = array('bar' => 'baz'); $foo = (object)$foo; var_dump(method_exists($foo->baz));
Output for 5.3.0 - 7.1.0
Notice: Undefined property: stdClass::$baz in /in/vbia0 on line 6 Warning: method_exists() expects exactly 2 parameters, 1 given in /in/vbia0 on line 6 NULL
Output for 5.2.6 - 5.2.17
Notice: Undefined property: stdClass::$baz in /in/vbia0 on line 6 Warning: Wrong parameter count for method_exists() in /in/vbia0 on line 6 NULL
Output for 5.0.0 - 5.2.5
Notice: Undefined property: stdClass::$baz in /in/vbia0 on line 6 Warning: Wrong parameter count for method_exists() in /in/vbia0 on line 6 NULL
Output for 4.3.0 - 4.4.9
Notice: Undefined property: baz in /in/vbia0 on line 6 Warning: Wrong parameter count for method_exists() in /in/vbia0 on line 6 NULL