3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.64 ms | 1395 KiB | 15 Q