3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(); for($i = 0; $i < 50000; $i++) { $array[] = md5('Hallo'); } var_dump(number_format(memory_get_usage(), 0, ',', '.')) . "\n"; var_dump(number_format(memory_get_usage(true), 0,',','.')) . "\n"; unset($array); var_dump(number_format(memory_get_usage(), 0, ',', '.')) . "\n"; var_dump(number_format(memory_get_usage(true), 0,',','.')) . "\n";
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 = 3
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 3
Branch analysis from position: 11
Branch analysis from position: 3
filename:       /in/EqVLj
function name:  (null)
number of ops:  67
compiled vars:  !0 = $array, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->9
    5     3    >   INIT_FCALL                                               'md5'
          4        SEND_VAL                                                 'Hallo'
          5        DO_ICALL                                         $5      
          6        ASSIGN_DIM                                               !0
          7        OP_DATA                                                  $5
    4     8        PRE_INC                                                  !1
          9    >   IS_SMALLER                                               !1, 50000
         10      > JMPNZ                                                    ~7, ->3
    8    11    >   INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'number_format'
         13        INIT_FCALL                                               'memory_get_usage'
         14        DO_ICALL                                         $8      
         15        SEND_VAR                                                 $8
         16        SEND_VAL                                                 0
         17        SEND_VAL                                                 '%2C'
         18        SEND_VAL                                                 '.'
         19        DO_ICALL                                         $9      
         20        SEND_VAR                                                 $9
         21        DO_ICALL                                         $10     
         22        CONCAT                                           ~11     $10, '%0A'
         23        FREE                                                     ~11
    9    24        INIT_FCALL                                               'var_dump'
         25        INIT_FCALL                                               'number_format'
         26        INIT_FCALL                                               'memory_get_usage'
         27        SEND_VAL                                                 <true>
         28        DO_ICALL                                         $12     
         29        SEND_VAR                                                 $12
         30        SEND_VAL                                                 0
         31        SEND_VAL                                                 '%2C'
         32        SEND_VAL                                                 '.'
         33        DO_ICALL                                         $13     
         34        SEND_VAR                                                 $13
         35        DO_ICALL                                         $14     
         36        CONCAT                                           ~15     $14, '%0A'
         37        FREE                                                     ~15
   11    38        UNSET_CV                                                 !0
   13    39        INIT_FCALL                                               'var_dump'
         40        INIT_FCALL                                               'number_format'
         41        INIT_FCALL                                               'memory_get_usage'
         42        DO_ICALL                                         $16     
         43        SEND_VAR                                                 $16
         44        SEND_VAL                                                 0
         45        SEND_VAL                                                 '%2C'
         46        SEND_VAL                                                 '.'
         47        DO_ICALL                                         $17     
         48        SEND_VAR                                                 $17
         49        DO_ICALL                                         $18     
         50        CONCAT                                           ~19     $18, '%0A'
         51        FREE                                                     ~19
   14    52        INIT_FCALL                                               'var_dump'
         53        INIT_FCALL                                               'number_format'
         54        INIT_FCALL                                               'memory_get_usage'
         55        SEND_VAL                                                 <true>
         56        DO_ICALL                                         $20     
         57        SEND_VAR                                                 $20
         58        SEND_VAL                                                 0
         59        SEND_VAL                                                 '%2C'
         60        SEND_VAL                                                 '.'
         61        DO_ICALL                                         $21     
         62        SEND_VAR                                                 $21
         63        DO_ICALL                                         $22     
         64        CONCAT                                           ~23     $22, '%0A'
         65        FREE                                                     ~23
         66      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.66 ms | 1400 KiB | 21 Q