3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $token_created_at = '2014-08-10 00:00:00'; //$token_created_at; //Return current time to match //$current_time = new DateTime(); $my_dt = new DateTime(); $my_dt->createFromFormat('m-d-Y H:i:s', $token_created_at); //Modify error //$expires_at = $my_dt->modify('+1 hour');
based on rLQhI
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Output for 5.2.0 - 5.2.17
Fatal error: Call to undefined method DateTime::createFromFormat() in /in/0HuFF on line 11
Process exited with code 255.
Output for 5.0.0 - 5.0.5, 5.1.1 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/0HuFF on line 10
Process exited with code 255.
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/0HuFF on line 14
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetime in /in/0HuFF on line 10
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: datetime in /in/0HuFF on line 10