3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = [ [3] => [ [id] => 3, [name] => 'Yas Sleeveless Embroidered Top', [price] => 45.99, [quantity] => 1 ], [5] => [ [id] => 5, [name] => 'Yas Sleeveless Embroidered Top', [price] => 45.99, [quantity] => 1 ] ]; echo implode(', ', array_map(function ($entry) { return $entry['tag_name']; }, $input));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bLUPA
function name:  (null)
number of ops:  38
compiled vars:  !0 = $input
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   FETCH_CONSTANT                                   ~1      'id'
          1        INIT_ARRAY                                       ~2      ~1
          2        INIT_ARRAY                                       ~3      3, ~2
    7     3        FETCH_CONSTANT                                   ~4      'name'
          4        INIT_ARRAY                                       ~5      ~4
          5        ADD_ARRAY_ELEMENT                                ~3      'Yas+Sleeveless+Embroidered+Top', ~5
    8     6        FETCH_CONSTANT                                   ~6      'price'
          7        INIT_ARRAY                                       ~7      ~6
          8        ADD_ARRAY_ELEMENT                                ~3      45.99, ~7
    9     9        FETCH_CONSTANT                                   ~8      'quantity'
         10        INIT_ARRAY                                       ~9      ~8
         11        ADD_ARRAY_ELEMENT                                ~3      1, ~9
         12        INIT_ARRAY                                       ~10     ~3, <array>
   14    13        FETCH_CONSTANT                                   ~11     'id'
         14        INIT_ARRAY                                       ~12     ~11
         15        INIT_ARRAY                                       ~13     5, ~12
   15    16        FETCH_CONSTANT                                   ~14     'name'
         17        INIT_ARRAY                                       ~15     ~14
         18        ADD_ARRAY_ELEMENT                                ~13     'Yas+Sleeveless+Embroidered+Top', ~15
   16    19        FETCH_CONSTANT                                   ~16     'price'
         20        INIT_ARRAY                                       ~17     ~16
         21        ADD_ARRAY_ELEMENT                                ~13     45.99, ~17
   17    22        FETCH_CONSTANT                                   ~18     'quantity'
         23        INIT_ARRAY                                       ~19     ~18
         24        ADD_ARRAY_ELEMENT                                ~13     1, ~19
         25        ADD_ARRAY_ELEMENT                                ~10     ~13, <array>
    2    26        ASSIGN                                                   !0, ~10
   23    27        INIT_FCALL                                               'implode'
         28        SEND_VAL                                                 '%2C+'
         29        INIT_FCALL                                               'array_map'
         30        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FbLUPA%3A23%240'
   25    31        SEND_VAL                                                 ~21
         32        SEND_VAR                                                 !0
         33        DO_ICALL                                         $22     
         34        SEND_VAR                                                 $22
         35        DO_ICALL                                         $23     
         36        ECHO                                                     $23
         37      > RETURN                                                   1

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

End of function %00%7Bclosure%7D%2Fin%2FbLUPA%3A23%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.18 ms | 1400 KiB | 17 Q