3v4l.org

run code in 300+ PHP versions simultaneously
<?php $last_access=strtotime('today'); sleep(1); if ($last_access >= strtotime("today")) echo "Today"; else if ($last_access >= strtotime("yesterday")) echo "Yesterday"; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
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: 14
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 20
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/MJr8O
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                                                 'today'
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    4     4        INIT_FCALL                                               'sleep'
          5        SEND_VAL                                                 1
          6        DO_ICALL                                                 
    5     7        INIT_FCALL                                               'strtotime'
          8        SEND_VAL                                                 'today'
          9        DO_ICALL                                         $4      
         10        IS_SMALLER_OR_EQUAL                                      $4, !0
         11      > JMPZ                                                     ~5, ->14
    6    12    >   ECHO                                                     'Today'
         13      > JMP                                                      ->20
    7    14    >   INIT_FCALL                                               'strtotime'
         15        SEND_VAL                                                 'yesterday'
         16        DO_ICALL                                         $6      
         17        IS_SMALLER_OR_EQUAL                                      $6, !0
         18      > JMPZ                                                     ~7, ->20
    8    19    >   ECHO                                                     'Yesterday'
    9    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.65 ms | 940 KiB | 18 Q