PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php $input = [ 1730474763 - 1730471763, 1730474763 - 1730472763, 1730474763 - 1730474363, 1730474763 - 1730471263, 1730474763 - 1730465763, ]; var_dump(array_reduce($input, fn ($acc, $ts) => round($ts / 60) + $acc, 0)); var_dump(array_reduce($input, fn ($acc, $ts) => $ts / 60 + $acc, 0));
Show:  
Copy Clear