3v4l.org

run code in 300+ 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:  22
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    8     1        INIT_FCALL                                               'implode'
          2        SEND_VAL                                                 '%2C+'
          3        INIT_FCALL                                               'array_merge'
          4        INIT_FCALL                                               'array_values'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $2      
          7        SEND_UNPACK                                              $2
          8        CHECK_UNDEF_ARGS                                         
          9        DO_ICALL                                         $3      
         10        SEND_VAR                                                 $3
         11        DO_ICALL                                         $4      
         12        ECHO                                                     $4
   10    13        ECHO                                                     '%0A---%0A'
   12    14        INIT_FCALL                                               'array_reduce'
         15        SEND_VAR                                                 !0
         16        DECLARE_LAMBDA_FUNCTION                          ~5      [0]
         17        SEND_VAL                                                 ~5
         18        SEND_VAL                                                 ''
         19        DO_ICALL                                         $6      
         20        ECHO                                                     $6
         21      > 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}
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.0.0


preferences:
139.04 ms | 1004 KiB | 17 Q