3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = '01:05'; // 65 echo preg_replace_callback('/(\d{2}):(\d{2})/', function($matches) { return $matches[1] * 60 + $matches[2];}, $time);

preferences:
50.28 ms | 402 KiB | 5 Q