3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = Array ( Array ( (photo_id) => 46795 ), Array ( (photo_id) => 45112 ), Array ( (photo_id) => 46763 ), Array ( (photo_id) => 46593 ) ); 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/2P19b
function name:  (null)
number of ops:  24
compiled vars:  !0 = $input
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   FETCH_CONSTANT                                   ~1      'photo_id'
          1        INIT_ARRAY                                       ~2      46795, ~1
          2        INIT_ARRAY                                       ~3      ~2
   11     3        FETCH_CONSTANT                                   ~4      'photo_id'
          4        INIT_ARRAY                                       ~5      45112, ~4
          5        ADD_ARRAY_ELEMENT                                ~3      ~5
   16     6        FETCH_CONSTANT                                   ~6      'photo_id'
          7        INIT_ARRAY                                       ~7      46763, ~6
          8        ADD_ARRAY_ELEMENT                                ~3      ~7
   21     9        FETCH_CONSTANT                                   ~8      'photo_id'
         10        INIT_ARRAY                                       ~9      46593, ~8
         11        ADD_ARRAY_ELEMENT                                ~3      ~9
    2    12        ASSIGN                                                   !0, ~3
   26    13        INIT_FCALL                                               'implode'
         14        SEND_VAL                                                 '%2C+'
         15        INIT_FCALL                                               'array_map'
         16        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F2P19b%3A26%240'
   28    17        SEND_VAL                                                 ~11
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $12     
         20        SEND_VAR                                                 $12
         21        DO_ICALL                                         $13     
         22        ECHO                                                     $13
         23      > RETURN                                                   1

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

End of function %00%7Bclosure%7D%2Fin%2F2P19b%3A26%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.51 ms | 1396 KiB | 17 Q