3v4l.org

run code in 300+ PHP versions simultaneously
<?php $days_allowed = array('ID' => '1', 'monday' => '1', 'tuesday' => '1', 'wednesday' => '1', 'thursday' => '1', 'friday' => '1', 'saturday' => '0', 'sunday' => '0'); $days = array(); if($days_allowed["monday"] == 1) { array_push($days, '1'); } if($days_allowed["tuesday"] == 1) { array_push($days, '2'); } if($days_allowed["wednesday"] == 1) { array_push($days, '3'); } if($days_allowed["thursday"] == 1) { array_push($days, '4'); } if($days_allowed["friday"] == 1) { array_push($days, '5'); } if($days_allowed["saturday"] == 1) { array_push($days, '6'); } if($days_allowed["sunday"] == 1) { array_push($days, '0'); } //if (!($_hebeproductionDeliveryDate->format("w") == 2 || $_hebeproductionDeliveryDate->format("w") == 4 || $_hebeproductionDeliveryDate->format("w") == 6)) { if (!(in_array($_hebeproductionDeliveryDate->format("w"), $days))) { echo "do error"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 9
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 16
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 23
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 30
Branch analysis from position: 26
2 jumps found. (Code = 43) Position 1 = 33, Position 2 = 37
Branch analysis from position: 33
2 jumps found. (Code = 43) Position 1 = 40, Position 2 = 44
Branch analysis from position: 40
2 jumps found. (Code = 43) Position 1 = 47, Position 2 = 51
Branch analysis from position: 47
2 jumps found. (Code = 43) Position 1 = 60, Position 2 = 61
Branch analysis from position: 60
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 61
Branch analysis from position: 51
Branch analysis from position: 44
Branch analysis from position: 37
Branch analysis from position: 30
Branch analysis from position: 23
Branch analysis from position: 16
Branch analysis from position: 9
filename:       /in/BX0mr
function name:  (null)
number of ops:  62
compiled vars:  !0 = $days_allowed, !1 = $days, !2 = $_hebeproductionDeliveryDate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, <array>
    6     2        FETCH_DIM_R                                      ~5      !0, 'monday'
          3        IS_EQUAL                                                 ~5, 1
          4      > JMPZ                                                     ~6, ->9
    7     5    >   INIT_FCALL                                               'array_push'
          6        SEND_REF                                                 !1
          7        SEND_VAL                                                 '1'
          8        DO_ICALL                                                 
    9     9    >   FETCH_DIM_R                                      ~8      !0, 'tuesday'
         10        IS_EQUAL                                                 ~8, 1
         11      > JMPZ                                                     ~9, ->16
   10    12    >   INIT_FCALL                                               'array_push'
         13        SEND_REF                                                 !1
         14        SEND_VAL                                                 '2'
         15        DO_ICALL                                                 
   12    16    >   FETCH_DIM_R                                      ~11     !0, 'wednesday'
         17        IS_EQUAL                                                 ~11, 1
         18      > JMPZ                                                     ~12, ->23
   13    19    >   INIT_FCALL                                               'array_push'
         20        SEND_REF                                                 !1
         21        SEND_VAL                                                 '3'
         22        DO_ICALL                                                 
   15    23    >   FETCH_DIM_R                                      ~14     !0, 'thursday'
         24        IS_EQUAL                                                 ~14, 1
         25      > JMPZ                                                     ~15, ->30
   16    26    >   INIT_FCALL                                               'array_push'
         27        SEND_REF                                                 !1
         28        SEND_VAL                                                 '4'
         29        DO_ICALL                                                 
   18    30    >   FETCH_DIM_R                                      ~17     !0, 'friday'
         31        IS_EQUAL                                                 ~17, 1
         32      > JMPZ                                                     ~18, ->37
   19    33    >   INIT_FCALL                                               'array_push'
         34        SEND_REF                                                 !1
         35        SEND_VAL                                                 '5'
         36        DO_ICALL                                                 
   21    37    >   FETCH_DIM_R                                      ~20     !0, 'saturday'
         38        IS_EQUAL                                                 ~20, 1
         39      > JMPZ                                                     ~21, ->44
   22    40    >   INIT_FCALL                                               'array_push'
         41        SEND_REF                                                 !1
         42        SEND_VAL                                                 '6'
         43        DO_ICALL                                                 
   24    44    >   FETCH_DIM_R                                      ~23     !0, 'sunday'
         45        IS_EQUAL                                                 ~23, 1
         46      > JMPZ                                                     ~24, ->51
   25    47    >   INIT_FCALL                                               'array_push'
         48        SEND_REF                                                 !1
         49        SEND_VAL                                                 '0'
         50        DO_ICALL                                                 
   31    51    >   INIT_FCALL                                               'in_array'
         52        INIT_METHOD_CALL                                         !2, 'format'
         53        SEND_VAL_EX                                              'w'
         54        DO_FCALL                                      0  $26     
         55        SEND_VAR                                                 $26
         56        SEND_VAR                                                 !1
         57        DO_ICALL                                         $27     
         58        BOOL_NOT                                         ~28     $27
         59      > JMPZ                                                     ~28, ->61
   32    60    >   ECHO                                                     'do+error'
   33    61    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.98 ms | 1400 KiB | 17 Q