3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = [ 0=>1 , 1=>'Jon', 2=>'jon@email.com' , 3=>2 , 4=>'Doe' , 5=>'doe@email.com' , 6=>3, 7=>'Foo' , 8=>'foo@email.com', ]; $array=array_map(function($val){ return array_combine(['id','name','email'],$val);}, array_chunk($array,3)); var_dump($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z4sMR
function name:  (null)
number of ops:  15
compiled vars:  !0 = $array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   15     1        INIT_FCALL                                                   'array_map'
          2        DECLARE_LAMBDA_FUNCTION                              ~2      [0]
          3        SEND_VAL                                                     ~2
          4        INIT_FCALL                                                   'array_chunk'
          5        SEND_VAR                                                     !0
          6        SEND_VAL                                                     3
          7        DO_ICALL                                             $3      
          8        SEND_VAR                                                     $3
          9        DO_ICALL                                             $4      
         10        ASSIGN                                                       !0, $4
   17    11        INIT_FCALL                                                   'var_dump'
         12        SEND_VAR                                                     !0
         13        DO_ICALL                                                     
         14      > 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/Z4sMR
function name:  {closure:/in/Z4sMR:15}
number of ops:  7
compiled vars:  !0 = $val
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   15     0  E >   RECV                                                 !0      
          1        INIT_FCALL                                                   'array_combine'
          2        SEND_VAL                                                     <array>
          3        SEND_VAR                                                     !0
          4        DO_ICALL                                             $1      
          5      > RETURN                                                       $1
          6*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.17 ms | 2758 KiB | 17 Q