3v4l.org

run code in 500+ PHP versions simultaneously
<?php $labels_array=array("Element 1","Element 2","Element 3","Element 4","Element 5","Element 6"); echo implode(",\n",array_map(function($i){ return implode(", ",$i); },array_chunk($labels_array,2)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Pj8nd
function name:  (null)
number of ops:  13
compiled vars:  !0 = $labels_array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, <array>
    3     1        INIT_FCALL                                                   'array_map'
          2        DECLARE_LAMBDA_FUNCTION                              ~2      [0]
    5     3        SEND_VAL                                                     ~2
          4        INIT_FCALL                                                   'array_chunk'
          5        SEND_VAR                                                     !0
          6        SEND_VAL                                                     2
          7        DO_ICALL                                             $3      
          8        SEND_VAR                                                     $3
    3     9        DO_ICALL                                             $4      
         10        FRAMELESS_ICALL_2                implode             ~5      '%2C%0A', $4
    5    11        ECHO                                                         ~5
         12      > 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/Pj8nd
function name:  {closure:/in/Pj8nd:3}
number of ops:  4
compiled vars:  !0 = $i
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
    4     1        FRAMELESS_ICALL_2                implode             ~1      '%2C+', !0
          2      > RETURN                                                       ~1
    5     3*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
162.08 ms | 3052 KiB | 15 Q