3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [ "test", "test2" ]; $b = [1, 2]; echo implode(', ', array_map(function ($entry, $entry2) { return $entry['tag_name']; }, $a, $b));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Aja3n
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a, !1 = $b
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%2FAja3n%3A9%240'
   11     6        SEND_VAL                                                 ~4
          7        SEND_VAR                                                 !0
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $5      
         10        SEND_VAR                                                 $5
         11        DO_ICALL                                         $6      
         12        ECHO                                                     $6
         13      > RETURN                                                   1

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

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.2 ms | 1395 KiB | 17 Q