3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n = 10000; $a = new SplFixedArray($n); for($i = 0; $i < $n; $i++) $a[$i] = range(1,RAND(100,1000)); print count($a);
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 = 7
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 7
Branch analysis from position: 20
Branch analysis from position: 7
filename:       /in/WP6Sg
function name:  (null)
number of ops:  23
compiled vars:  !0 = $n, !1 = $a, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 10000
    3     1        NEW                                              $4      'SplFixedArray'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $4
    4     5        ASSIGN                                                   !2, 0
          6      > JMP                                                      ->18
    5     7    >   INIT_FCALL                                               'range'
          8        SEND_VAL                                                 1
          9        INIT_FCALL                                               'rand'
         10        SEND_VAL                                                 100
         11        SEND_VAL                                                 1000
         12        DO_ICALL                                         $9      
         13        SEND_VAR                                                 $9
         14        DO_ICALL                                         $10     
         15        ASSIGN_DIM                                               !1, !2
         16        OP_DATA                                                  $10
    4    17        PRE_INC                                                  !2
         18    >   IS_SMALLER                                               !2, !0
         19      > JMPNZ                                                    ~12, ->7
    8    20    >   COUNT                                            ~13     !1
         21        ECHO                                                     ~13
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.23 ms | 1395 KiB | 17 Q