3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $format = "Y/m/d"; $f4_raw = "Fri Aug 30 2013 00:00:00 GMT+0530"; $f4_formatted = date($format, strtotime($f4_raw)); echo "Format 4: $f4_formatted"; //$date = DateTime::createFromFormat('i/M/Y', 'Tue/Feb/2013'); //import with the specified format... //echo $date->format('Y-m-d');
Output for 5.1.1 - 5.1.2, 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Format 4: 2013/08/29
Output for 5.1.3 - 5.2.17
Format 4: 2013/08/30
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/O6LNA on line 7
Process exited with code 255.
Output for 4.3.0 - 5.0.5
Format 4: 1970/01/01