3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arguments = array('2014-05-06'); $x = call_user_method_array(array('DateTime', '__construct'), $arguments); echo $x->format('d.m.Y');
based on pJmhA
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function call_user_method_array() in /in/EcJOH:4 Stack trace: #0 {main} thrown in /in/EcJOH on line 4
Process exited with code 255.
Output for 5.6.8 - 5.6.28
Deprecated: Function call_user_method_array() is deprecated in /in/EcJOH on line 4 Warning: call_user_method_array() expects exactly 3 parameters, 2 given in /in/EcJOH on line 4 Fatal error: Call to a member function format() on null in /in/EcJOH on line 5
Process exited with code 255.
Output for 5.3.22 - 5.5.35
Deprecated: Function call_user_method_array() is deprecated in /in/EcJOH on line 4 Warning: call_user_method_array() expects exactly 3 parameters, 2 given in /in/EcJOH on line 4 Fatal error: Call to a member function format() on a non-object in /in/EcJOH on line 5
Process exited with code 255.