3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matrix = array(); $matrix[1] = array( 0 => 65.70, 1 => 'Coles', 2 => '34 days', 3 => 14 ); $matstring=implode(",",$matrix[1]); print "INSERT INTO Australia (Price, Company, Days, Weight) VALUES ('$matstring')"; print "\n"; $id = 'NULL'; $table = 'atable'; $values = array('one','two','three','four','five'); $valstring=implode("','",$values); print "INSERT INTO " . $table . " VALUES ($id,'$valstring')"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iiteU
function name:  (null)
number of ops:  31
compiled vars:  !0 = $matrix, !1 = $matstring, !2 = $id, !3 = $table, !4 = $values, !5 = $valstring
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN_DIM                                               !0, 1
          2        OP_DATA                                                  <array>
    6     3        INIT_FCALL                                               'implode'
          4        SEND_VAL                                                 '%2C'
          5        FETCH_DIM_R                                      ~8      !0, 1
          6        SEND_VAL                                                 ~8
          7        DO_ICALL                                         $9      
          8        ASSIGN                                                   !1, $9
    8     9        ROPE_INIT                                     3  ~12     'INSERT+INTO+Australia+%28Price%2C+Company%2C+Days%2C+Weight%29+VALUES+%28%27'
         10        ROPE_ADD                                      1  ~12     ~12, !1
         11        ROPE_END                                      2  ~11     ~12, '%27%29'
         12        ECHO                                                     ~11
   10    13        ECHO                                                     '%0A'
   12    14        ASSIGN                                                   !2, 'NULL'
   13    15        ASSIGN                                                   !3, 'atable'
   14    16        ASSIGN                                                   !4, <array>
   16    17        INIT_FCALL                                               'implode'
         18        SEND_VAL                                                 '%27%2C%27'
         19        SEND_VAR                                                 !4
         20        DO_ICALL                                         $17     
         21        ASSIGN                                                   !5, $17
   18    22        CONCAT                                           ~19     'INSERT+INTO+', !3
   19    23        ROPE_INIT                                     5  ~21     '+VALUES+%28'
         24        ROPE_ADD                                      1  ~21     ~21, !2
         25        ROPE_ADD                                      2  ~21     ~21, '%2C%27'
         26        ROPE_ADD                                      3  ~21     ~21, !5
         27        ROPE_END                                      4  ~20     ~21, '%27%29'
         28        CONCAT                                           ~24     ~19, ~20
         29        ECHO                                                     ~24
   22    30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.18 ms | 1388 KiB | 15 Q