3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.06 ms | 1387 KiB | 17 Q