3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = new \DateInterval('P1M'); var_dump($foo->__set_state($fooz));
based on rGAHO
Output for 7.3.0alpha1 - 7.3.0rc3
Notice: Undefined variable: fooz in /in/504tn on line 5 Fatal error: Uncaught TypeError: Argument 1 passed to DateInterval::__set_state() must be of the type array, null given in /in/504tn:5 Stack trace: #0 /in/504tn(5): DateInterval::__set_state(NULL) #1 {main} thrown in /in/504tn on line 5
Process exited with code 255.
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.2.6
Notice: Undefined variable: fooz in /in/504tn on line 5 Warning: DateInterval::__set_state() expects parameter 1 to be array, null given in /in/504tn on line 5 bool(false)
Output for hhvm-3.15.4
Fatal error: Uncaught Error: Call to undefined method DateInterval::__set_state() in /in/504tn:5 Stack trace: #0 {main}
Process exited with code 255.