3v4l.org

run code in 300+ PHP versions simultaneously
<?php $users = array(35,25,45,34,56,67); $months = array('smelly','stinky','chubby','grubby','nubby','funky'); foreach($users as $user){ $mdata[$user] = array(); foreach($months as $month){ array_push($mdata[$user][],$month); } } print_r($mdata); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 17
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 17
Branch analysis from position: 4
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 15
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 15
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 15
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/W3rkO
function name:  (null)
number of ops:  22
compiled vars:  !0 = $users, !1 = $months, !2 = $user, !3 = $mdata, !4 = $month
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, <array>
    7     2      > FE_RESET_R                                       $7      !0, ->17
          3    > > FE_FETCH_R                                               $7, !2, ->17
    9     4    >   ASSIGN_DIM                                               !3, !2
          5        OP_DATA                                                  <array>
   11     6      > FE_RESET_R                                       $9      !1, ->15
          7    > > FE_FETCH_R                                               $9, !4, ->15
   13     8    >   INIT_FCALL                                               'array_push'
          9        FETCH_DIM_W                                      $10     !3, !2
         10        FETCH_DIM_W                                      $11     $10
         11        SEND_REF                                                 $11
         12        SEND_VAR                                                 !4
         13        DO_ICALL                                                 
   11    14      > JMP                                                      ->7
         15    >   FE_FREE                                                  $9
    7    16      > JMP                                                      ->3
         17    >   FE_FREE                                                  $7
   19    18        INIT_FCALL                                               'print_r'
         19        SEND_VAR                                                 !3
         20        DO_ICALL                                                 
   21    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.71 ms | 1400 KiB | 17 Q