3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $time = '01:05'; // 65 echo preg_replace_callback('/(\d{2}):(\d{2})/', function($matches) { return $matches[1] * 60 + $matches[2];}, $time);
based on LLDJK
Output for 5.6.0 - 7.2.0
65