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 5.6.0 - 5.6.30, 7.0.0 - 7.2.0
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.