3v4l.org

run code in 300+ PHP versions simultaneously
<?php $first_day_of_week = date('l'); $date = intval(date('j')); echo $date; 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 = 12, Position 2 = 14
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 16
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
Branch analysis from position: 14
filename:       /in/ehahk
function name:  (null)
number of ops:  17
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                                                 'j'
          6        DO_ICALL                                         $4      
          7        CAST                                          4  ~5      $4
          8        ASSIGN                                                   !1, ~5
    4     9        ECHO                                                     !1
    5    10        IS_SMALLER_OR_EQUAL                              ~7      !1, 7
         11      > JMPZ_EX                                          ~7      ~7, ->14
         12    >   IS_EQUAL                                         ~8      !0, 'Monday'
         13        BOOL                                             ~7      ~8
         14    > > JMPZ                                                     ~7, ->16
    7    15    >   ECHO                                                     'this+is+the+first+Tuesday+of+the+week'
    9    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.45 ms | 1395 KiB | 15 Q