3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = new DateTime('2016-01-11 13:37'); $y = new DataTime('2016-01-01'); var_dump($x < $y);
based on PaeB4
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Class 'DataTime' not found in /in/h4RIC:4 Stack trace: #0 {main} thrown in /in/h4RIC on line 4
Process exited with code 255.
Output for 5.3.21 - 5.6.28
Fatal error: Class 'DataTime' not found in /in/h4RIC on line 4
Process exited with code 255.