3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x=array(); for ($i=0;$i++;$i<100) { $x[$i] = array(); for ($j=0;$j++;$j<1000) { $x[$i][$j] = mt_rand(); } } $y = (array) $x; echo sizeof($x);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 3
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 7
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 3
Branch analysis from position: 20
Branch analysis from position: 3
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 7
Branch analysis from position: 16
Branch analysis from position: 7
filename:       /in/jDMC7
function name:  (null)
number of ops:  25
compiled vars:  !0 = $x, !1 = $i, !2 = $j, !3 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->18
    5     3    >   ASSIGN_DIM                                               !0, !1
          4        OP_DATA                                                  <array>
    6     5        ASSIGN                                                   !2, 0
          6      > JMP                                                      ->14
    8     7    >   INIT_FCALL                                               'mt_rand'
          8        DO_ICALL                                         $10     
          9        FETCH_DIM_W                                      $8      !0, !1
         10        ASSIGN_DIM                                               $8, !2
         11        OP_DATA                                                  $10
    6    12        IS_SMALLER                                       ~11     !2, 1000
         13        FREE                                                     ~11
         14    >   POST_INC                                         ~12     !2
         15      > JMPNZ                                                    ~12, ->7
    3    16    >   IS_SMALLER                                       ~13     !1, 100
         17        FREE                                                     ~13
         18    >   POST_INC                                         ~14     !1
         19      > JMPNZ                                                    ~14, ->3
   12    20    >   CAST                                          7  ~15     !0
         21        ASSIGN                                                   !3, ~15
   13    22        COUNT                                            ~17     !0
         23        ECHO                                                     ~17
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.77 ms | 1396 KiB | 15 Q