3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new SplFixedArray(10000); $count = 100000; for($i =0; $i<$count; $i++) { $a[$i] = $i; if ($i==9999) $a->setSize(100000); }
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 = 7
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 7
Branch analysis from position: 17
Branch analysis from position: 7
Branch analysis from position: 14
filename:       /in/le6EM
function name:  (null)
number of ops:  18
compiled vars:  !0 = $a, !1 = $count, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'SplFixedArray'
          1        SEND_VAL_EX                                              10000
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $3
    4     4        ASSIGN                                                   !1, 100000
    6     5        ASSIGN                                                   !2, 0
          6      > JMP                                                      ->15
    8     7    >   ASSIGN_DIM                                               !0, !2
          8        OP_DATA                                                  !2
   10     9        IS_EQUAL                                                 !2, 9999
         10      > JMPZ                                                     ~9, ->14
         11    >   INIT_METHOD_CALL                                         !0, 'setSize'
         12        SEND_VAL_EX                                              100000
         13        DO_FCALL                                      0          
    6    14    >   PRE_INC                                                  !2
         15    >   IS_SMALLER                                               !2, !1
         16      > JMPNZ                                                    ~12, ->7
   11    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.68 ms | 1394 KiB | 13 Q