3v4l.org

run code in 300+ PHP versions simultaneously
<?php $q_key = array('a', 'b', 'c'); $q_value = array('d', 'e', 'f'); $q = "INSERT INTO `form_content_element_tweak` ({implode(',', $q_key)}) VALUES(".implode(",", $q_val).")"; echo $q;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Bi3b7
function name:  (null)
number of ops:  14
compiled vars:  !0 = $q_key, !1 = $q_value, !2 = $q, !3 = $q_val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    4     2        ROPE_INIT                                     3  ~7      'INSERT+INTO+%60form_content_element_tweak%60+%28%7Bimplode%28%27%2C%27%2C+'
          3        ROPE_ADD                                      1  ~7      ~7, !0
          4        ROPE_END                                      2  ~6      ~7, '%29%7D%29+VALUES%28'
          5        INIT_FCALL                                               'implode'
          6        SEND_VAL                                                 '%2C'
          7        SEND_VAR                                                 !3
          8        DO_ICALL                                         $9      
          9        CONCAT                                           ~10     ~6, $9
         10        CONCAT                                           ~11     ~10, '%29'
         11        ASSIGN                                                   !2, ~11
    5    12        ECHO                                                     !2
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.64 ms | 1394 KiB | 15 Q