3v4l.org

run code in 300+ PHP versions simultaneously
<?php $row = 0; $dest = []; $a = 1; while ($row < 2000000) { $dest[] = [ $a, 1, ]; if ($row % 100000 === 0) { echo (memory_get_usage(true) / 1000000) . PHP_EOL; } $row++; }
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 = 4
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 17
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 4
Branch analysis from position: 20
Branch analysis from position: 4
Branch analysis from position: 17
filename:       /in/qQonc
function name:  (null)
number of ops:  21
compiled vars:  !0 = $row, !1 = $dest, !2 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
    4     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN                                                   !2, 1
    6     3      > JMP                                                      ->18
    8     4    >   INIT_ARRAY                                       ~7      !2
    9     5        ADD_ARRAY_ELEMENT                                ~7      1
    7     6        ASSIGN_DIM                                               !1
    9     7        OP_DATA                                                  ~7
   12     8        MOD                                              ~8      !0, 100000
          9        IS_IDENTICAL                                             ~8, 0
         10      > JMPZ                                                     ~9, ->17
   13    11    >   INIT_FCALL                                               'memory_get_usage'
         12        SEND_VAL                                                 <true>
         13        DO_ICALL                                         $10     
         14        DIV                                              ~11     $10, 1000000
         15        CONCAT                                           ~12     ~11, '%0A'
         16        ECHO                                                     ~12
   15    17    >   PRE_INC                                                  !0
    6    18    >   IS_SMALLER                                               !0, 2000000
         19      > JMPNZ                                                    ~14, ->4
   16    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.37 ms | 1395 KiB | 15 Q