3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.7 ms | 1398 KiB | 17 Q