3v4l.org

run code in 300+ PHP versions simultaneously
<?php $in = "07:07"; $out = "15:56"; $in_time = "07:00"; $out_time = "16:00"; if(strtotime($in) > strtotime($in_time)){ echo (strtotime($in) - strtotime($in_time))/60 . " minutes late in\n\n"; }else{ echo "not late in\n\n"; } if(strtotime($out) < strtotime($out_time)){ echo (strtotime($out_time)-strtotime($out))/60 . " minutes early out\n"; }else{ echo "not early out\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 23
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 43
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 44
Branch analysis from position: 44
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 43
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 43
Branch analysis from position: 32
Branch analysis from position: 43
filename:       /in/YShPa
function name:  (null)
number of ops:  45
compiled vars:  !0 = $in, !1 = $out, !2 = $in_time, !3 = $out_time
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '07%3A07'
    4     1        ASSIGN                                                   !1, '15%3A56'
    5     2        ASSIGN                                                   !2, '07%3A00'
    6     3        ASSIGN                                                   !3, '16%3A00'
    8     4        INIT_FCALL                                               'strtotime'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $8      
          7        INIT_FCALL                                               'strtotime'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                         $9      
         10        IS_SMALLER                                               $9, $8
         11      > JMPZ                                                     ~10, ->23
    9    12    >   INIT_FCALL                                               'strtotime'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $11     
         15        INIT_FCALL                                               'strtotime'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                         $12     
         18        SUB                                              ~13     $11, $12
         19        DIV                                              ~14     ~13, 60
         20        CONCAT                                           ~15     ~14, '+minutes+late+in%0A%0A'
         21        ECHO                                                     ~15
         22      > JMP                                                      ->24
   11    23    >   ECHO                                                     'not+late+in%0A%0A'
   14    24    >   INIT_FCALL                                               'strtotime'
         25        SEND_VAR                                                 !1
         26        DO_ICALL                                         $16     
         27        INIT_FCALL                                               'strtotime'
         28        SEND_VAR                                                 !3
         29        DO_ICALL                                         $17     
         30        IS_SMALLER                                               $16, $17
         31      > JMPZ                                                     ~18, ->43
   15    32    >   INIT_FCALL                                               'strtotime'
         33        SEND_VAR                                                 !3
         34        DO_ICALL                                         $19     
         35        INIT_FCALL                                               'strtotime'
         36        SEND_VAR                                                 !1
         37        DO_ICALL                                         $20     
         38        SUB                                              ~21     $19, $20
         39        DIV                                              ~22     ~21, 60
         40        CONCAT                                           ~23     ~22, '+minutes+early+out%0A'
         41        ECHO                                                     ~23
         42      > JMP                                                      ->44
   17    43    >   ECHO                                                     'not+early+out%0A'
   18    44    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.08 ms | 1400 KiB | 15 Q