3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.46 ms | 1394 KiB | 15 Q