3v4l.org

run code in 500+ PHP versions simultaneously
<?php $tahun = array(2010,2011,2012,2013,2014); $status = array("akademi","instansi","umum","pending","pass"); $total = array(2,1,3,4,5); $res = []; foreach($tahun as $ind=>$val){ $res[$ind] = [$val, $status[$ind], $total[$ind]]; } print_r($res);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 15
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 15
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/McJj7
function name:  (null)
number of ops:  20
compiled vars:  !0 = $tahun, !1 = $status, !2 = $total, !3 = $res, !4 = $val, !5 = $ind
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    4     1        ASSIGN                                                       !1, <array>
    5     2        ASSIGN                                                       !2, <array>
    7     3        ASSIGN                                                       !3, <array>
    8     4      > FE_RESET_R                                           $10     !0, ->15
          5    > > FE_FETCH_R                                           ~11     $10, !4, ->15
          6    >   ASSIGN                                                       !5, ~11
    9     7        INIT_ARRAY                                           ~14     !4
          8        FETCH_DIM_R                                          ~15     !1, !5
          9        ADD_ARRAY_ELEMENT                                    ~14     ~15
         10        FETCH_DIM_R                                          ~16     !2, !5
         11        ADD_ARRAY_ELEMENT                                    ~14     ~16
         12        ASSIGN_DIM                                                   !3, !5
         13        OP_DATA                                                      ~14
    8    14      > JMP                                                          ->5
         15    >   FE_FREE                                                      $10
   12    16        INIT_FCALL                                                   'print_r'
         17        SEND_VAR                                                     !3
         18        DO_ICALL                                                     
         19      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.57 ms | 2247 KiB | 14 Q