3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = new \DateInterval('P1M'); var_dump($foo->__set_state());
based on sVeC3
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0rc3
Warning: DateInterval::__set_state() expects exactly 1 parameter, 0 given in /in/rGAHO on line 5 bool(false)
Output for hhvm-3.15.4
Fatal error: Uncaught Error: Call to undefined method DateInterval::__set_state() in /in/rGAHO:5 Stack trace: #0 {main}
Process exited with code 255.