3v4l.org

run code in 300+ PHP versions simultaneously
<?php $first_day_of_week = date('l'); $date = intval(date('l')); if ($date <= 7 && $first_day_of_week == 'Monday') { // It's the first Monday of the month. echo "this is the first Tuesday of the week"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 15
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
Branch analysis from position: 13
filename:       /in/QFqQV
function name:  (null)
number of ops:  16
compiled vars:  !0 = $first_day_of_week, !1 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'l'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    3     4        INIT_FCALL                                               'date'
          5        SEND_VAL                                                 'l'
          6        DO_ICALL                                         $4      
          7        CAST                                          4  ~5      $4
          8        ASSIGN                                                   !1, ~5
    4     9        IS_SMALLER_OR_EQUAL                              ~7      !1, 7
         10      > JMPZ_EX                                          ~7      ~7, ->13
         11    >   IS_EQUAL                                         ~8      !0, 'Monday'
         12        BOOL                                             ~7      ~8
         13    > > JMPZ                                                     ~7, ->15
    6    14    >   ECHO                                                     'this+is+the+first+Tuesday+of+the+week'
    8    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.02 ms | 1386 KiB | 15 Q