3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.6 ms | 1400 KiB | 19 Q