3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = [ 'name' => ['Some message to display1'], 'test' => ['Some message to display2'], 'kudos' => ['Some message to display3'] ]; echo implode(', ', array_merge(...array_values($array))); echo "\n---\n"; echo array_reduce($array, function($carry, $item) {return $carry .= ($carry ? ', ' : '') . $item[0]; }, '');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/28XNI
function name:  (null)
number of ops:  19
compiled vars:  !0 = $array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, <array>
    8     1        INIT_FCALL                                                   'array_merge'
          2        INIT_FCALL                                                   'array_values'
          3        SEND_VAR                                                     !0
          4        DO_ICALL                                             $2      
          5        SEND_UNPACK                                                  $2
          6        CHECK_UNDEF_ARGS                                             
          7        DO_ICALL                                             $3      
          8        FRAMELESS_ICALL_2                implode             ~4      '%2C+', $3
          9        ECHO                                                         ~4
   10    10        ECHO                                                         '%0A---%0A'
   12    11        INIT_FCALL                                                   'array_reduce'
         12        SEND_VAR                                                     !0
         13        DECLARE_LAMBDA_FUNCTION                              ~5      [0]
         14        SEND_VAL                                                     ~5
         15        SEND_VAL                                                     ''
         16        DO_ICALL                                             $6      
         17        ECHO                                                         $6
         18      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/28XNI
function name:  {closure:/in/28XNI:12}
number of ops:  11
compiled vars:  !0 = $carry, !1 = $item
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
          0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
          2      > JMPZ                                                         !0, ->5
          3    >   QM_ASSIGN                                            ~2      '%2C+'
          4      > JMP                                                          ->6
          5    >   QM_ASSIGN                                            ~2      ''
          6    >   FETCH_DIM_R                                          ~3      !1, 0
          7        CONCAT                                               ~4      ~2, ~3
          8        ASSIGN_OP                                         8  ~5      !0, ~4
          9      > RETURN                                                       ~5
         10*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
204.97 ms | 2010 KiB | 17 Q