3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $curr = new DateTime('today'); echo $curr->format('M').'<br/>'; $curr->modify('+1 month'); echo $curr->format('M').'<br/>';
Output for 5.2.0 - 7.3.0rc4
Oct<br/>Nov<br/>
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/D4JmE on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetime in /in/D4JmE on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: datetime in /in/D4JmE on line 2