3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.41 ms | 1398 KiB | 19 Q