3v4l.org

run code in 300+ PHP versions simultaneously
<?php $morning = '14:05:12'; $evening = '17:05:29'; $sum = gmdate('H:i:s', (strtotime($morning)-strtotime("00:00:00"))+(strtotime($evening)-strtotime("00:00:00"))); echo $sum;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fA8M1
function name:  (null)
number of ops:  24
compiled vars:  !0 = $morning, !1 = $evening, !2 = $sum
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '14%3A05%3A12'
    4     1        ASSIGN                                                   !1, '17%3A05%3A29'
    6     2        INIT_FCALL                                               'gmdate'
          3        SEND_VAL                                                 'H%3Ai%3As'
          4        INIT_FCALL                                               'strtotime'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $5      
          7        INIT_FCALL                                               'strtotime'
          8        SEND_VAL                                                 '00%3A00%3A00'
          9        DO_ICALL                                         $6      
         10        SUB                                              ~7      $5, $6
         11        INIT_FCALL                                               'strtotime'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $8      
         14        INIT_FCALL                                               'strtotime'
         15        SEND_VAL                                                 '00%3A00%3A00'
         16        DO_ICALL                                         $9      
         17        SUB                                              ~10     $8, $9
         18        ADD                                              ~11     ~7, ~10
         19        SEND_VAL                                                 ~11
         20        DO_ICALL                                         $12     
         21        ASSIGN                                                   !2, $12
    7    22        ECHO                                                     !2
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.2 ms | 1395 KiB | 17 Q