3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "00:20"; $b = "00:15"; date_default_timezone_set("UTC"); echo date("H:i", strtotime($a) + strtotime($b)); echo "\n\n"; echo date("H:i", strtotime($a) - strtotime($b));

preferences:
30.7 ms | 406 KiB | 5 Q