3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo $last_access=strtotime('-2 days'); if ($last_access >= strtotime("today")) echo "Today"; else if ($last_access >= strtotime("yesterday")) echo "Yesterday"; else echo 'not yesterday'; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VctG7
function name:  (null)
number of ops:  21
compiled vars:  !0 = $last_access
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 '-2+days'
          2        DO_ICALL                                         $1      
          3        ASSIGN                                           ~2      !0, $1
          4        ECHO                                                     ~2
    5     5        INIT_FCALL                                               'strtotime'
          6        SEND_VAL                                                 'today'
          7        DO_ICALL                                         $3      
          8        IS_SMALLER_OR_EQUAL                                      $3, !0
          9      > JMPZ                                                     ~4, ->12
    6    10    >   ECHO                                                     'Today'
         11      > JMP                                                      ->20
    7    12    >   INIT_FCALL                                               'strtotime'
         13        SEND_VAL                                                 'yesterday'
         14        DO_ICALL                                         $5      
         15        IS_SMALLER_OR_EQUAL                                      $5, !0
         16      > JMPZ                                                     ~6, ->19
    8    17    >   ECHO                                                     'Yesterday'
         18      > JMP                                                      ->20
   10    19    >   ECHO                                                     'not+yesterday'
   11    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.19 ms | 940 KiB | 16 Q