- array_map: documentation ( source)
- print_r: documentation ( source)
- date: documentation ( source)
- strtotime: documentation ( source)
<?php
$times = ["1:10:12", "2:15:33", "3:12:10"];
$today = strtotime(date("Y-m-d"));
$intervals = array_map(function($a) use ($today){ return $today - strtotime($a);}, $times);
print_r($intervals);