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 = 16
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 16
Branch analysis from position: 4
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 14
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 14
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 14
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/ASoD6
function name:  (null)
number of ops:  21
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, ->16
          3    > > FE_FETCH_R                                               $7, !2, ->16
    9     4    >   ASSIGN_DIM                                               !3, !2
          5        OP_DATA                                                  <array>
   11     6      > FE_RESET_R                                       $9      !1, ->14
          7    > > FE_FETCH_R                                               $9, !4, ->14
   13     8    >   INIT_FCALL                                               'array_push'
          9        FETCH_DIM_W                                      $10     !3, !2
         10        SEND_REF                                                 $10
         11        SEND_VAR                                                 !4
         12        DO_ICALL                                                 
   11    13      > JMP                                                      ->7
         14    >   FE_FREE                                                  $9
    7    15      > JMP                                                      ->3
         16    >   FE_FREE                                                  $7
   19    17        INIT_FCALL                                               'print_r'
         18        SEND_VAR                                                 !3
         19        DO_ICALL                                                 
   21    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.87 ms | 1395 KiB | 17 Q