3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.65 ms | 1395 KiB | 15 Q