3v4l.org

run code in 300+ PHP versions simultaneously
<?php $line = new SplFixedArray(10); for ( $i = 0, $max = 10; $i < $max; $line[$i++] = 0 ) ; var_dump($line);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 7
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 7
Branch analysis from position: 12
Branch analysis from position: 7
filename:       /in/bHt6r
function name:  (null)
number of ops:  16
compiled vars:  !0 = $line, !1 = $i, !2 = $max
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'SplFixedArray'
          1        SEND_VAL_EX                                              10
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $3
    4     4        ASSIGN                                                   !1, 0
          5        ASSIGN                                                   !2, 10
          6      > JMP                                                      ->10
          7    >   POST_INC                                         ~8      !1
          8        ASSIGN_DIM                                               !0, ~8
          9        OP_DATA                                                  0
         10    >   IS_SMALLER                                               !1, !2
         11      > JMPNZ                                                    ~10, ->7
    6    12    >   INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.4 ms | 1394 KiB | 15 Q