3v4l.org

run code in 300+ PHP versions simultaneously
<?php $weekDays = json_decode('["4", "2"]'); $thisWeekDay = date("N", "2014-11-04") - 1; if (in_array($thisWeekDay, $weekDays)) { die(1); } else { die(2); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/H2SVW
function name:  (null)
number of ops:  19
compiled vars:  !0 = $weekDays, !1 = $thisWeekDay
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'json_decode'
          1        SEND_VAL                                                 '%5B%224%22%2C+%222%22%5D'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    3     4        INIT_FCALL                                               'date'
          5        SEND_VAL                                                 'N'
          6        SEND_VAL                                                 '2014-11-04'
          7        DO_ICALL                                         $4      
          8        SUB                                              ~5      $4, 1
          9        ASSIGN                                                   !1, ~5
    5    10        INIT_FCALL                                               'in_array'
         11        SEND_VAR                                                 !1
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $7      
         14      > JMPZ                                                     $7, ->17
    7    15    > > EXIT                                                     1
         16*       JMP                                                      ->18
   11    17    > > EXIT                                                     2
   12    18*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.46 ms | 1399 KiB | 19 Q