3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t1 = '00:08:10.38474'; if (preg_match('/^(\d{2}):(\d{2}):(\d{2})\.(\d{5})$/', $t1, $matches)) { [, $hours, $minutes, $seconds, $milliseconds] = $matches; var_dump($hours, $minutes, $seconds, $milliseconds); // "00", "08", "10", "38474" }

preferences:
24.36 ms | 405 KiB | 5 Q