3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $i1 = DateInterval::createFromDateString('10 minutes'); $i2 = DateInterval::createFromDateString('30 minutes'); var_dump($i1 > $i2); var_dump($i1 > $i2); $i1->___wakeup(); var_dump($i1 > $i2); var_dump($i1 > $i2);
based on C87UC
Output for 7.0.0 - 7.1.0
bool(false) bool(false) Fatal error: Uncaught Error: Call to undefined method DateInterval::___wakeup() in /in/XZUWl:7 Stack trace: #0 {main} thrown in /in/XZUWl on line 7
Process exited with code 255.
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0
bool(false) bool(false) Fatal error: Call to undefined method DateInterval::___wakeup() in /in/XZUWl on line 7
Process exited with code 255.
Output for 5.0.0 - 5.2.17
Fatal error: Class 'DateInterval' not found in /in/XZUWl on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Undefined class name 'dateinterval' in /in/XZUWl on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Undefined class name 'dateinterval' in /in/XZUWl on line 3