3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [ "test", "test2" ]; $b = [1, 2]; 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/YYBj0
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a, !1 = $b, !2 = $input
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    7     1        ASSIGN                                                   !1, <array>
    9     2        INIT_FCALL                                               'implode'
          3        SEND_VAL                                                 '%2C+'
          4        INIT_FCALL                                               'array_map'
          5        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FYYBj0%3A9%240'
   11     6        SEND_VAL                                                 ~5
          7        SEND_VAR                                                 !2
          8        DO_ICALL                                         $6      
          9        SEND_VAR                                                 $6
         10        DO_ICALL                                         $7      
         11        ECHO                                                     $7
         12      > RETURN                                                   1

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

End of function %00%7Bclosure%7D%2Fin%2FYYBj0%3A9%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.51 ms | 1395 KiB | 17 Q