3v4l.org

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

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

End of function %00%7Bclosure%7D%2Fin%2FFRZ15%3A13%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.46 ms | 1396 KiB | 19 Q