3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL | E_STRICT); $a = array("a" => 1, "b" => 2, "c" => 3); $b = 2; switch($b) { case $a["a"]: echo "a"; case $a["b"]: echo "b"; case $a["c"]: echo "c"; default: echo "~~NOOOOOOO~~"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 15
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 16
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 17
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L9e8R
function name:  (null)
number of ops:  20
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
          3        ASSIGN                                                   !0, <array>
          4        ASSIGN                                                   !1, 2
          5        FETCH_DIM_R                                      ~6      !0, 'a'
          6        IS_EQUAL                                                 !1, ~6
          7      > JMPNZ                                                    ~5, ->15
          8    >   FETCH_DIM_R                                      ~7      !0, 'b'
          9        IS_EQUAL                                                 !1, ~7
         10      > JMPNZ                                                    ~5, ->16
         11    >   FETCH_DIM_R                                      ~8      !0, 'c'
         12        IS_EQUAL                                                 !1, ~8
         13      > JMPNZ                                                    ~5, ->17
         14    > > JMP                                                      ->18
         15    >   ECHO                                                     'a'
         16    >   ECHO                                                     'b'
         17    >   ECHO                                                     'c'
         18    >   ECHO                                                     '%7E%7ENOOOOOOO%7E%7E'
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.77 ms | 1395 KiB | 15 Q