3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.04 ms | 1394 KiB | 13 Q