3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = new DateTime('NOW'); //echo $d->format('w'); //echo date('w', strtotime($d->format('Y-m-d'))); echo date('G:i:s', strtotime($d));

preferences:
44.75 ms | 402 KiB | 5 Q