3v4l.org

run code in 300+ PHP versions simultaneously
<?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);

preferences:
32.21 ms | 402 KiB | 5 Q