3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n = 10000; $a = new \SplFixedArray($n); for($i = 0; $i < $n; $i++) $a[$i] = array(1, 2, 3); print count($a);
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/EUnCX
function name:  (null)
number of ops:  15
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                                                      ->10
    5     7    >   ASSIGN_DIM                                               !1, !2
          8        OP_DATA                                                  <array>
    4     9        PRE_INC                                                  !2
         10    >   IS_SMALLER                                               !2, !0
         11      > JMPNZ                                                    ~10, ->7
    7    12    >   COUNT                                            ~11     !1
         13        ECHO                                                     ~11
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.52 ms | 1384 KiB | 13 Q