3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $format = "j-M-y H:i:s"; $f4_raw = "Sat Aug 31 2013 00:00:00"; $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 4.3.0 - 5.0.5, 5.1.1 - 7.1.0
Format 4: 31-Aug-13 00:00:00
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/tffF1 on line 7
Process exited with code 255.