3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $d = date("Y-m-d H:i:s GMT0004"); print_r(getdate(strtotime($d))); //echo date('w', strtotime($d->format('Y-m-d'))); //echo date("H:i:s", strtotime($d);
Output for 5.1.1 - 7.1.0
Array ( [seconds] => 0 [minutes] => 0 [hours] => 1 [mday] => 1 [wday] => 4 [mon] => 1 [year] => 1970 [yday] => 0 [weekday] => Thursday [month] => January [0] => 0 )
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/TjmBi on line 5
Process exited with code 255.
Output for 4.3.0 - 5.0.5
Array ( [seconds] => 59 [minutes] => 59 [hours] => 0 [mday] => 1 [wday] => 4 [mon] => 1 [year] => 1970 [yday] => 0 [weekday] => Thursday [month] => January [0] => -1 )