3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (date('w') == 3) { $last_tuesday = date('Y-m-d'); } else { $last_tuesday = date('Y-m-d', strtotime('last wednesday')); } echo $last_tuesday;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 10
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gL32Z
function name:  (null)
number of ops:  20
compiled vars:  !0 = $last_tuesday
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'w'
          2        DO_ICALL                                         $1      
          3        IS_EQUAL                                                 $1, 3
          4      > JMPZ                                                     ~2, ->10
    3     5    >   INIT_FCALL                                               'date'
          6        SEND_VAL                                                 'Y-m-d'
          7        DO_ICALL                                         $3      
          8        ASSIGN                                                   !0, $3
          9      > JMP                                                      ->18
    5    10    >   INIT_FCALL                                               'date'
         11        SEND_VAL                                                 'Y-m-d'
         12        INIT_FCALL                                               'strtotime'
         13        SEND_VAL                                                 'last+wednesday'
         14        DO_ICALL                                         $5      
         15        SEND_VAR                                                 $5
         16        DO_ICALL                                         $6      
         17        ASSIGN                                                   !0, $6
    8    18    >   ECHO                                                     !0
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.84 ms | 1395 KiB | 17 Q