3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = array( array( 'tag_name' => 'google' ), array( 'tag_name' => 'technology' ) ); $letters = array(); foreach ($input as $value) { $letters = array_merge($letters, $value["tag_name"]); } echo implode(', ', $letters);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 11
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 11
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/AXZK6
function name:  (null)
number of ops:  18
compiled vars:  !0 = $input, !1 = $letters, !2 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   11     1        ASSIGN                                                   !1, <array>
   12     2      > FE_RESET_R                                       $5      !0, ->11
          3    > > FE_FETCH_R                                               $5, !2, ->11
   13     4    >   INIT_FCALL                                               'array_merge'
          5        SEND_VAR                                                 !1
          6        FETCH_DIM_R                                      ~6      !2, 'tag_name'
          7        SEND_VAL                                                 ~6
          8        DO_ICALL                                         $7      
          9        ASSIGN                                                   !1, $7
   12    10      > JMP                                                      ->3
         11    >   FE_FREE                                                  $5
   16    12        INIT_FCALL                                               'implode'
         13        SEND_VAL                                                 '%2C+'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $9      
         16        ECHO                                                     $9
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.57 ms | 1395 KiB | 17 Q