3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = [ 1 => ['symbol' => 'salad'], 2 => ['symbol' => 'wine'], 3 => ['symbol' => 'beer'] ]; echo join(", ", array_map( fn($v) => "{$v}bar", array_column($data, 'symbol') ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nLK3m
function name:  (null)
number of ops:  16
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    7     1        INIT_FCALL                                               'join'
          2        SEND_VAL                                                 '%2C+'
          3        INIT_FCALL                                               'array_map'
    8     4        DECLARE_LAMBDA_FUNCTION                          ~2      [0]
          5        SEND_VAL                                                 ~2
    9     6        INIT_FCALL                                               'array_column'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 'symbol'
          9        DO_ICALL                                         $3      
         10        SEND_VAR                                                 $3
    7    11        DO_ICALL                                         $4      
    9    12        SEND_VAR                                                 $4
    7    13        DO_ICALL                                         $5      
    9    14        ECHO                                                     $5
   11    15      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nLK3m
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
          1        NOP                                                      
          2        FAST_CONCAT                                      ~1      !0, 'bar'
          3      > RETURN                                                   ~1
          4*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.8 ms | 1003 KiB | 16 Q