3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tempInicioTime = substr('2017-01-01 08:00:00', 11, 5); echo $tempInicioTime . "\n"; $tempInicioTime = strtotime($tempInicioTime); echo date('d m Y',$tempInicioTime); $tempFimTime = substr('2017-01-01 12:00:00', 11, 5); $tempFimTime = strtotime($tempFimTime);

preferences:
52.86 ms | 402 KiB | 5 Q