3v4l.org

run code in 300+ PHP versions simultaneously
<?php $where = [["id", ">", 3], ["firstname", "=", "John"]]; $wherequery = ' where'; foreach($where as $w){ $wherequery .= ' ' . $w[0] . ' ' . $w[1] . ' :' . $w[0]; $params[$w[0]] = $w[2]; } echo "SELECT columns FROM table " . $wherequery;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 18
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 18
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/5WXK5
function name:  (null)
number of ops:  22
compiled vars:  !0 = $where, !1 = $wherequery, !2 = $w, !3 = $params
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, '+where'
    4     2      > FE_RESET_R                                       $6      !0, ->18
          3    > > FE_FETCH_R                                               $6, !2, ->18
    5     4    >   FETCH_DIM_R                                      ~7      !2, 0
          5        CONCAT                                           ~8      '+', ~7
          6        CONCAT                                           ~9      ~8, '+'
          7        FETCH_DIM_R                                      ~10     !2, 1
          8        CONCAT                                           ~11     ~9, ~10
          9        CONCAT                                           ~12     ~11, '+%3A'
         10        FETCH_DIM_R                                      ~13     !2, 0
         11        CONCAT                                           ~14     ~12, ~13
         12        ASSIGN_OP                                     8          !1, ~14
    6    13        FETCH_DIM_R                                      ~16     !2, 0
         14        FETCH_DIM_R                                      ~18     !2, 2
         15        ASSIGN_DIM                                               !3, ~16
         16        OP_DATA                                                  ~18
    4    17      > JMP                                                      ->3
         18    >   FE_FREE                                                  $6
    8    19        CONCAT                                           ~19     'SELECT+columns+FROM+table+', !1
         20        ECHO                                                     ~19
    9    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
240.19 ms | 1007 KiB | 13 Q