3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t1select = "teamvalue"; $position = array(1,2); $sql = "SELECT * FROM `allsquads` WHERE `Team` = '$t1select' AND `Position` = '$position[$i]' OR `Secondary` = '$position[$i]'"; echo sql;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OdT4X
function name:  (null)
number of ops:  15
compiled vars:  !0 = $t1select, !1 = $position, !2 = $sql, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'teamvalue'
    4     1        ASSIGN                                                   !1, <array>
    6     2        ROPE_INIT                                     7  ~9      'SELECT+%2A+FROM+%60allsquads%60+WHERE+%60Team%60+%3D+%27'
          3        ROPE_ADD                                      1  ~9      ~9, !0
          4        ROPE_ADD                                      2  ~9      ~9, '%27+%0A++++++++++++++++++++AND+%60Position%60+%3D+%27'
    7     5        FETCH_DIM_R                                      ~6      !1, !3
          6        ROPE_ADD                                      3  ~9      ~9, ~6
          7        ROPE_ADD                                      4  ~9      ~9, '%27+%0A++++++++++++++++++++OR+%60Secondary%60+%3D+%27'
    8     8        FETCH_DIM_R                                      ~7      !1, !3
          9        ROPE_ADD                                      5  ~9      ~9, ~7
         10        ROPE_END                                      6  ~8      ~9, '%27'
    6    11        ASSIGN                                                   !2, ~8
   12    12        FETCH_CONSTANT                                   ~14     'sql'
         13        ECHO                                                     ~14
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.01 ms | 1397 KiB | 13 Q