3v4l.org

run code in 300+ PHP versions simultaneously
<?php $first_day_of_week = date('l', strtotime('9/2/2013')); $date = intval(date('j', strtotime('9/2/2013'))); if ($date <= 7 && $first_day_of_week == 'Monday') { // It's the first Monday of the month. echo "this is the first day of the week"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 19, Position 2 = 21
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 23
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
Branch analysis from position: 21
filename:       /in/2vivs
function name:  (null)
number of ops:  24
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        INIT_FCALL                                               'strtotime'
          3        SEND_VAL                                                 '9%2F2%2F2013'
          4        DO_ICALL                                         $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                         $3      
          7        ASSIGN                                                   !0, $3
    3     8        INIT_FCALL                                               'date'
          9        SEND_VAL                                                 'j'
         10        INIT_FCALL                                               'strtotime'
         11        SEND_VAL                                                 '9%2F2%2F2013'
         12        DO_ICALL                                         $5      
         13        SEND_VAR                                                 $5
         14        DO_ICALL                                         $6      
         15        CAST                                          4  ~7      $6
         16        ASSIGN                                                   !1, ~7
    4    17        IS_SMALLER_OR_EQUAL                              ~9      !1, 7
         18      > JMPZ_EX                                          ~9      ~9, ->21
         19    >   IS_EQUAL                                         ~10     !0, 'Monday'
         20        BOOL                                             ~9      ~10
         21    > > JMPZ                                                     ~9, ->23
    6    22    >   ECHO                                                     'this+is+the+first+day+of+the+week'
    8    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.86 ms | 1395 KiB | 17 Q