3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dateSubmitted = 'January 2, 2013'; if(time() > strtotime($dateSubmitted . '+2 days')) { echo 'expired'; } else { echo 'not expired'; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/W7IRB
function name:  (null)
number of ops:  13
compiled vars:  !0 = $dateSubmitted
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'January+2%2C+2013'
    5     1        INIT_FCALL                                               'time'
          2        DO_ICALL                                         $2      
          3        INIT_FCALL                                               'strtotime'
          4        CONCAT                                           ~3      !0, '%2B2+days'
          5        SEND_VAL                                                 ~3
          6        DO_ICALL                                         $4      
          7        IS_SMALLER                                               $4, $2
          8      > JMPZ                                                     ~5, ->11
    6     9    >   ECHO                                                     'expired'
         10      > JMP                                                      ->12
    8    11    >   ECHO                                                     'not+expired'
   10    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.93 ms | 1394 KiB | 17 Q