3v4l.org

run code in 300+ PHP versions simultaneously
<?php $current_day = 6; if ($current_day == 1 || 2 || 3 || 4 || 5 ) { print_r('soka'); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
2 jumps found. (Code = 47) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
2 jumps found. (Code = 47) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
2 jumps found. (Code = 47) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
Branch analysis from position: 10
Branch analysis from position: 8
Branch analysis from position: 6
Branch analysis from position: 4
filename:       /in/vtI8Z
function name:  (null)
number of ops:  15
compiled vars:  !0 = $current_day
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 6
    3     1        IS_EQUAL                                         ~2      !0, 1
          2      > JMPNZ_EX                                         ~2      ~2, ->4
          3    >   BOOL                                             ~2      2
          4    > > JMPNZ_EX                                         ~2      ~2, ->6
          5    >   BOOL                                             ~2      3
          6    > > JMPNZ_EX                                         ~2      ~2, ->8
          7    >   BOOL                                             ~2      4
          8    > > JMPNZ_EX                                         ~2      ~2, ->10
          9    >   BOOL                                             ~2      5
         10    > > JMPZ                                                     ~2, ->14
    4    11    >   INIT_FCALL                                               'print_r'
         12        SEND_VAL                                                 'soka'
         13        DO_ICALL                                                 
    5    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.27 ms | 1395 KiB | 15 Q