3v4l.org

run code in 300+ PHP versions simultaneously
<?php $item = 0; switch($item){ case ( ($item>=0) && ($item<=16)): var_dump('case 1'); break; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 5
filename:       /in/JjU5h
function name:  (null)
number of ops:  13
compiled vars:  !0 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
    6     1        IS_SMALLER_OR_EQUAL                              ~3      0, !0
          2      > JMPZ_EX                                          ~3      ~3, ->5
          3    >   IS_SMALLER_OR_EQUAL                              ~4      !0, 16
          4        BOOL                                             ~3      ~4
          5    >   IS_EQUAL                                                 !0, ~3
          6      > JMPNZ                                                    ~2, ->8
          7    > > JMP                                                      ->12
    7     8    >   INIT_FCALL                                               'var_dump'
          9        SEND_VAL                                                 'case+1'
         10        DO_ICALL                                                 
    8    11      > JMP                                                      ->12
    9    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.43 ms | 1394 KiB | 15 Q