3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n = 10; $a = new SplFixedArray($n); for($i = 0; $i < $n; $i++) $a[$i] = range(1,RAND(10,100)); print $a[$i-1]; 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/imZd9
function name:  (null)
number of ops:  26
compiled vars:  !0 = $n, !1 = $a, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 10
    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                                                 10
         11        SEND_VAL                                                 100
         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
    6    20    >   SUB                                              ~13     !2, 1
         21        FETCH_DIM_R                                      ~14     !1, ~13
         22        ECHO                                                     ~14
    8    23        COUNT                                            ~15     !1
         24        ECHO                                                     ~15
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.96 ms | 1395 KiB | 17 Q