3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $s = mktime(0,1,0); var_dump($s); var_dump(date('d-m-Y h:i:s', $s));//this is 12-hour format var_dump(date('d-m-Y H:i:s', $s));//this is 24-hour format
Output for 4.3.0 - 5.0.5, 5.1.1 - 7.1.0
int(1396994460) string(19) "09-04-2014 12:01:00" string(19) "09-04-2014 00:01:00"
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/jP0WS on line 5
Process exited with code 255.