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" }
Output for git.master, git.master_jit, rfc.property-hooks
string(2) "00" string(2) "08" string(2) "10" string(5) "38474"

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
27.61 ms | 405 KiB | 5 Q