3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.13 ms | 1399 KiB | 17 Q