3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t1 = array ( "basicInfo" => array ( "The Sineps", "December 25, 2010", "lemonpole" ), "overallRecord" => array ( 0, 0, 0, 0 ), "overallSeasons" => array ( "season1.cs" => array (0, 0, 0), "season2.cs" => array (0, 0, 0) ), "matches" => array ( "season1.cs" => array ( "week1" => array ("12", "3", "1"), "week2" => array ("8", "8" ,"0"), "week3" => array ("8", "8" ,"0") ), "season2.cs" => array ( "week1" => array ("9", "2", "5"), "week2" => array ("12", "2" ,"2") ) ) ); foreach ($t1['matches'] as $season => $weeks) { foreach ($weeks as [$w, $l, $d]) { $t1['overallSeasons'][$season][0] += $w; $t1['overallSeasons'][$season][1] += $l; $t1['overallSeasons'][$season][2] += $d; } } var_export($t1);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 29
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 29
Branch analysis from position: 4
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 27
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 27
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 27
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
filename:       /in/WF5Hm
function name:  (null)
number of ops:  34
compiled vars:  !0 = $t1, !1 = $weeks, !2 = $season, !3 = $w, !4 = $l, !5 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   32     1        FETCH_DIM_R                                      ~7      !0, 'matches'
          2      > FE_RESET_R                                       $8      ~7, ->29
          3    > > FE_FETCH_R                                       ~9      $8, !1, ->29
          4    >   ASSIGN                                                   !2, ~9
   33     5      > FE_RESET_R                                       $11     !1, ->27
          6    > > FE_FETCH_R                                               $11, $12, ->27
          7    >   FETCH_LIST_R                                     $13     $12, 0
          8        ASSIGN                                                   !3, $13
          9        FETCH_LIST_R                                     $15     $12, 1
         10        ASSIGN                                                   !4, $15
         11        FETCH_LIST_R                                     $17     $12, 2
         12        ASSIGN                                                   !5, $17
         13        FREE                                                     $12
   34    14        FETCH_DIM_RW                                     $19     !0, 'overallSeasons'
         15        FETCH_DIM_RW                                     $20     $19, !2
         16        ASSIGN_DIM_OP                +=               1          $20, 0
         17        OP_DATA                                                  !3
   35    18        FETCH_DIM_RW                                     $22     !0, 'overallSeasons'
         19        FETCH_DIM_RW                                     $23     $22, !2
         20        ASSIGN_DIM_OP                +=               1          $23, 1
         21        OP_DATA                                                  !4
   36    22        FETCH_DIM_RW                                     $25     !0, 'overallSeasons'
         23        FETCH_DIM_RW                                     $26     $25, !2
         24        ASSIGN_DIM_OP                +=               1          $26, 2
         25        OP_DATA                                                  !5
   33    26      > JMP                                                      ->6
         27    >   FE_FREE                                                  $11
   32    28      > JMP                                                      ->3
         29    >   FE_FREE                                                  $8
   39    30        INIT_FCALL                                               'var_export'
         31        SEND_VAR                                                 !0
         32        DO_ICALL                                                 
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.94 ms | 1001 KiB | 14 Q