3v4l.org

run code in 300+ PHP versions simultaneously
<?php $startMemory = memory_get_usage(); $array = array(); for ($i = 0; $i < 100000; ++$i) { $array[$i] = $i; } echo memory_get_usage() - $startMemory, ' bytes';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 6
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 6
Branch analysis from position: 11
Branch analysis from position: 6
filename:       /in/eDneU
function name:  (null)
number of ops:  17
compiled vars:  !0 = $startMemory, !1 = $array, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'memory_get_usage'
          1        DO_ICALL                                         $3      
          2        ASSIGN                                                   !0, $3
    4     3        ASSIGN                                                   !1, <array>
    5     4        ASSIGN                                                   !2, 0
          5      > JMP                                                      ->9
    6     6    >   ASSIGN_DIM                                               !1, !2
          7        OP_DATA                                                  !2
    5     8        PRE_INC                                                  !2
          9    >   IS_SMALLER                                               !2, 100000
         10      > JMPNZ                                                    ~9, ->6
    8    11    >   INIT_FCALL                                               'memory_get_usage'
         12        DO_ICALL                                         $10     
         13        SUB                                              ~11     $10, !0
         14        ECHO                                                     ~11
         15        ECHO                                                     '+bytes'
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.91 ms | 1395 KiB | 15 Q