3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cut = 3600; $date_start = strtotime("2017-11-02 02:19:59"); $date_end = strtotime("2017-11-02 03:32:06"); $total = ($date_end - $date_start) - $cut; if($total < 0){ echo '0'; }else{ echo date("H:i:s", $total); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QRLdK
function name:  (null)
number of ops:  22
compiled vars:  !0 = $cut, !1 = $date_start, !2 = $date_end, !3 = $total
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 3600
    4     1        INIT_FCALL                                               'strtotime'
          2        SEND_VAL                                                 '2017-11-02+02%3A19%3A59'
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !1, $5
    5     5        INIT_FCALL                                               'strtotime'
          6        SEND_VAL                                                 '2017-11-02+03%3A32%3A06'
          7        DO_ICALL                                         $7      
          8        ASSIGN                                                   !2, $7
    6     9        SUB                                              ~9      !2, !1
         10        SUB                                              ~10     ~9, !0
         11        ASSIGN                                                   !3, ~10
    8    12        IS_SMALLER                                               !3, 0
         13      > JMPZ                                                     ~12, ->16
    9    14    >   ECHO                                                     '0'
         15      > JMP                                                      ->21
   11    16    >   INIT_FCALL                                               'date'
         17        SEND_VAL                                                 'H%3Ai%3As'
         18        SEND_VAR                                                 !3
         19        DO_ICALL                                         $13     
         20        ECHO                                                     $13
   12    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.83 ms | 1399 KiB | 17 Q