3v4l.org

run code in 300+ PHP versions simultaneously
<?php $vocabulary = array( array('Language' => 'Gotisch','Nederlands' => 'Gotisch','German' => 'Gotisch','English' => 'Gothic','article' => '','id' => '0','type' => '','French' => ''), array('Language' => 'augĀ“','Nederlands' => 'oog','German' => 'Auge','English' => 'eye','article' => ' ','id' => '0','type' => '','French' => '')); $table = 't'; $sql = 'INSER INTO '.$table.' (' .join(', ', array_keys(current($vocabulary))) .') VAULES ' .join(', ', array_map(function($x) { return '('.join(', ', array_map(function($y) { return "'".$y."'"; }, $x)).')'; }, $vocabulary)) .';'; var_dump($sql);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MiZL4
function name:  (null)
number of ops:  32
compiled vars:  !0 = $vocabulary, !1 = $table, !2 = $sql
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    7     1        ASSIGN                                                   !1, 't'
    8     2        CONCAT                                           ~5      'INSER+INTO+', !1
          3        CONCAT                                           ~6      ~5, '+%28'
    9     4        INIT_FCALL                                               'join'
          5        SEND_VAL                                                 '%2C+'
          6        INIT_FCALL                                               'array_keys'
          7        INIT_FCALL                                               'current'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $7      
         10        SEND_VAR                                                 $7
         11        DO_ICALL                                         $8      
         12        SEND_VAR                                                 $8
         13        DO_ICALL                                         $9      
         14        CONCAT                                           ~10     ~6, $9
   10    15        CONCAT                                           ~11     ~10, '%29+VAULES+'
   11    16        INIT_FCALL                                               'join'
         17        SEND_VAL                                                 '%2C+'
         18        INIT_FCALL                                               'array_map'
         19        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FMiZL4%3A11%240'
   17    20        SEND_VAL                                                 ~12
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                         $13     
         23        SEND_VAR                                                 $13
         24        DO_ICALL                                         $14     
         25        CONCAT                                           ~15     ~11, $14
   18    26        CONCAT                                           ~16     ~15, '%3B'
    8    27        ASSIGN                                                   !2, ~16
   20    28        INIT_FCALL                                               'var_dump'
         29        SEND_VAR                                                 !2
         30        DO_ICALL                                                 
         31      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FMiZL4%3A11%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MiZL4
function name:  {closure}
number of ops:  14
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
   13     1        INIT_FCALL                                               'join'
          2        SEND_VAL                                                 '%2C+'
          3        INIT_FCALL                                               'array_map'
          4        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FMiZL4%3A13%241'
   16     5        SEND_VAL                                                 ~1
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $2      
          8        SEND_VAR                                                 $2
          9        DO_ICALL                                         $3      
         10        CONCAT                                           ~4      '%28', $3
         11        CONCAT                                           ~5      ~4, '%29'
         12      > RETURN                                                   ~5
   17    13*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FMiZL4%3A11%240

Function %00%7Bclosure%7D%2Fin%2FMiZL4%3A13%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MiZL4
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
   15     1        CONCAT                                           ~1      '%27', !0
          2        CONCAT                                           ~2      ~1, '%27'
          3      > RETURN                                                   ~2
   16     4*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FMiZL4%3A13%241

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.43 ms | 1400 KiB | 23 Q