3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $myDate = DateTime::createFromFormat('mdY', '06102013'); echo $myDate->format('d.m.Y'), PHP_EOL; echo $myDate->format('U'), PHP_EOL; echo time();
Output for 5.3.0 - 5.5.29, 5.5.31 - 5.6.12, 5.6.14 - 5.6.38, hhvm-3.10.1 - 3.11.1, hhvm-3.13.2 - 3.20.2, hhvm-3.22.0, 7.0.0 - 7.0.24, 7.0.26 - 7.3.0
10.06.2013 1370815626 1540505226
Output for 5.5.30, 5.6.13, hhvm-3.12.14, hhvm-3.21.0 - 3.21.3, 7.0.25
10.06.2013 1370815627 1540505227
Output for 5.2.10 - 5.2.17
Fatal error: Call to undefined method DateTime::createFromFormat() in /in/2Or6T on line 3
Process exited with code 255.
Output for 5.2.0 - 5.2.9
Fatal error: Call to undefined method DateTime::createfromformat() in /in/2Or6T on line 3
Process exited with code 255.
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/2Or6T on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Undefined class name 'datetime' in /in/2Or6T on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Undefined class name 'datetime' in /in/2Or6T on line 3