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 $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 = 5
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
filename:       /in/WvmL8
function name:  (null)
number of ops:  17
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, ->5
          2    > > FE_FETCH_R                                               $3, !1, ->5
   11     3    >   ECHO                                                     !1
   10     4      > JMP                                                      ->2
          5    >   FE_FREE                                                  $3
   13     6        INIT_FCALL                                               'implode'
          7        SEND_VAL                                                 '%2C+'
          8        INIT_FCALL                                               'array_map'
          9        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FWvmL8%3A13%240'
   15    10        SEND_VAL                                                 ~4
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $5      
         13        SEND_VAR                                                 $5
         14        DO_ICALL                                         $6      
         15        ECHO                                                     $6
         16      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FWvmL8%3A13%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WvmL8
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%2FWvmL8%3A13%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.16 ms | 1395 KiB | 17 Q