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($row) => "{$row['symbol']}bar", $data ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/36Jb2
function name:  (null)
number of ops:  12
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        SEND_VAR                                                 !0
    7     7        DO_ICALL                                         $3      
    9     8        SEND_VAR                                                 $3
    7     9        DO_ICALL                                         $4      
    9    10        ECHO                                                     $4
   11    11      > 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/36Jb2
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
          1        FETCH_DIM_R                                      ~1      !0, 'symbol'
          2        NOP                                                      
          3        FAST_CONCAT                                      ~2      ~1, 'bar'
          4      > RETURN                                                   ~2
          5*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.48 ms | 1002 KiB | 15 Q