3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arra2 = ''; Switch($arra2) { case 1; $smt = $con->prepare("SELECT * FROM tuser WHERE :NOMBR1 LIKE :ARR1"); break; case 2; $smt = $con->prepare("SELECT * FROM tuser WHERE :NOMBR2 LIKE :ARR1"); break; case 3; $smt = $con->prepare("SELECT * FROM tuser WHERE :NOMBR3 LIKE :ARR1"); break; case 4; $smt = $con->prepare("SELECT * FROM tuser WHERE :NOMBR4 LIKE :ARR1"); break; default: "Must select one of the Categorys"; }
Finding entry points
Branch analysis from position: 0
6 jumps found. (Code = 187) Position 1 = 11, Position 2 = 16, Position 3 = 21, Position 4 = 26, Position 5 = 31, Position 6 = 2
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
Branch analysis from position: 31
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 4, Position 2 = 11
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 6, Position 2 = 16
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 21
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 26
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
Branch analysis from position: 26
Branch analysis from position: 21
Branch analysis from position: 16
Branch analysis from position: 11
filename:       /in/Ac0Nm
function name:  (null)
number of ops:  32
compiled vars:  !0 = $arra2, !1 = $smt, !2 = $con
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, ''
    4     1      > SWITCH_LONG                                              !0, [ 1:->11, 2:->16, 3:->21, 4:->26, ], ->31
    5     2    >   IS_EQUAL                                                 !0, 1
          3      > JMPNZ                                                    ~4, ->11
    8     4    >   IS_EQUAL                                                 !0, 2
          5      > JMPNZ                                                    ~4, ->16
   11     6    >   IS_EQUAL                                                 !0, 3
          7      > JMPNZ                                                    ~4, ->21
   14     8    >   IS_EQUAL                                                 !0, 4
          9      > JMPNZ                                                    ~4, ->26
         10    > > JMP                                                      ->31
    6    11    >   INIT_METHOD_CALL                                         !2, 'prepare'
         12        SEND_VAL_EX                                              'SELECT+%2A+FROM+tuser+WHERE+%3ANOMBR1+LIKE+%3AARR1'
         13        DO_FCALL                                      0  $5      
         14        ASSIGN                                                   !1, $5
    7    15      > JMP                                                      ->31
    9    16    >   INIT_METHOD_CALL                                         !2, 'prepare'
         17        SEND_VAL_EX                                              'SELECT+%2A+FROM+tuser+WHERE+%3ANOMBR2+LIKE+%3AARR1'
         18        DO_FCALL                                      0  $7      
         19        ASSIGN                                                   !1, $7
   10    20      > JMP                                                      ->31
   12    21    >   INIT_METHOD_CALL                                         !2, 'prepare'
         22        SEND_VAL_EX                                              'SELECT+%2A+FROM+tuser+WHERE+%3ANOMBR3+LIKE+%3AARR1'
         23        DO_FCALL                                      0  $9      
         24        ASSIGN                                                   !1, $9
   13    25      > JMP                                                      ->31
   15    26    >   INIT_METHOD_CALL                                         !2, 'prepare'
         27        SEND_VAL_EX                                              'SELECT+%2A+FROM+tuser+WHERE+%3ANOMBR4+LIKE+%3AARR1'
         28        DO_FCALL                                      0  $11     
         29        ASSIGN                                                   !1, $11
   16    30      > JMP                                                      ->31
   18    31    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.87 ms | 1390 KiB | 13 Q