3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d1 = "00:08:27"; $d2 = "00:01:32"; echo date('H:i',strtotime($d1 + $d2)); //$date1 = new DateTime('00:08:27'); //$date2 = new DateTime('00:01:32'); //$diff = $date2->diff($date1); //print_r( $diff )
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Vvhdm
function name:  (null)
number of ops:  12
compiled vars:  !0 = $d1, !1 = $d2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '00%3A08%3A27'
    4     1        ASSIGN                                                   !1, '00%3A01%3A32'
    5     2        INIT_FCALL                                               'date'
          3        SEND_VAL                                                 'H%3Ai'
          4        INIT_FCALL                                               'strtotime'
          5        ADD                                              ~4      !0, !1
          6        SEND_VAL                                                 ~4
          7        DO_ICALL                                         $5      
          8        SEND_VAR                                                 $5
          9        DO_ICALL                                         $6      
         10        ECHO                                                     $6
   10    11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
207.91 ms | 1394 KiB | 17 Q