3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $d = date("Y-m-d H:i:s"); print_r(getdate(strtotime($d))); //echo date('w', strtotime($d->format('Y-m-d'))); //echo date("H:i:s", strtotime($d);
Output for 4.3.0 - 5.0.5, 5.1.1 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [seconds] => 56 [minutes] => 17 [hours] => 17 [mday] => 7 [wday] => 3 [mon] => 5 [year] => 2014 [yday] => 126 [weekday] => Wednesday [month] => May [0] => 1399475876 )
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/2qACv on line 5
Process exited with code 255.