3v4l.org

run code in 300+ PHP versions simultaneously
<?php $city[1] = "'Paris'"; $city[2] = "'London'"; $cityString= implode(", ", $city); echo "SELECT * FROM Customers WHERE City IN ($cityString);";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ATooi
function name:  (null)
number of ops:  14
compiled vars:  !0 = $city, !1 = $cityString
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN_DIM                                               !0, 1
          1        OP_DATA                                                  '%27Paris%27'
    5     2        ASSIGN_DIM                                               !0, 2
          3        OP_DATA                                                  '%27London%27'
    6     4        INIT_FCALL                                               'implode'
          5        SEND_VAL                                                 '%2C+'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !1, $4
    8     9        ROPE_INIT                                     3  ~7      'SELECT+%2A+FROM+Customers%0AWHERE+City+IN+%28'
    9    10        ROPE_ADD                                      1  ~7      ~7, !1
         11        ROPE_END                                      2  ~6      ~7, '%29%3B'
         12        ECHO                                                     ~6
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.58 ms | 1394 KiB | 15 Q