3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = []; for($i = 0; $i < 50000; $i++) { $array[] = md5('hallo'); $array[] = md5('bla'); } echo number_format(memory_get_usage(), 0, ',', '.'); echo "\n"; echo number_format(memory_get_usage(true), 0, ',', '.'); unset($array); echo number_format(memory_get_usage(), 0, ',', '.'); echo "\n"; echo number_format(memory_get_usage(true), 0, ',', '.');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 3
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 3
Branch analysis from position: 16
Branch analysis from position: 3
filename:       /in/INMdu
function name:  (null)
number of ops:  58
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                                                      ->14
    5     3    >   INIT_FCALL                                               'md5'
          4        SEND_VAL                                                 'hallo'
          5        DO_ICALL                                         $5      
          6        ASSIGN_DIM                                               !0
          7        OP_DATA                                                  $5
    6     8        INIT_FCALL                                               'md5'
          9        SEND_VAL                                                 'bla'
         10        DO_ICALL                                         $7      
         11        ASSIGN_DIM                                               !0
         12        OP_DATA                                                  $7
    4    13        PRE_INC                                                  !1
         14    >   IS_SMALLER                                               !1, 50000
         15      > JMPNZ                                                    ~9, ->3
    9    16    >   INIT_FCALL                                               'number_format'
         17        INIT_FCALL                                               'memory_get_usage'
         18        DO_ICALL                                         $10     
         19        SEND_VAR                                                 $10
         20        SEND_VAL                                                 0
         21        SEND_VAL                                                 '%2C'
         22        SEND_VAL                                                 '.'
         23        DO_ICALL                                         $11     
         24        ECHO                                                     $11
   10    25        ECHO                                                     '%0A'
   11    26        INIT_FCALL                                               'number_format'
         27        INIT_FCALL                                               'memory_get_usage'
         28        SEND_VAL                                                 <true>
         29        DO_ICALL                                         $12     
         30        SEND_VAR                                                 $12
         31        SEND_VAL                                                 0
         32        SEND_VAL                                                 '%2C'
         33        SEND_VAL                                                 '.'
         34        DO_ICALL                                         $13     
         35        ECHO                                                     $13
   13    36        UNSET_CV                                                 !0
   15    37        INIT_FCALL                                               'number_format'
         38        INIT_FCALL                                               'memory_get_usage'
         39        DO_ICALL                                         $14     
         40        SEND_VAR                                                 $14
         41        SEND_VAL                                                 0
         42        SEND_VAL                                                 '%2C'
         43        SEND_VAL                                                 '.'
         44        DO_ICALL                                         $15     
         45        ECHO                                                     $15
   16    46        ECHO                                                     '%0A'
   17    47        INIT_FCALL                                               'number_format'
         48        INIT_FCALL                                               'memory_get_usage'
         49        SEND_VAL                                                 <true>
         50        DO_ICALL                                         $16     
         51        SEND_VAR                                                 $16
         52        SEND_VAL                                                 0
         53        SEND_VAL                                                 '%2C'
         54        SEND_VAL                                                 '.'
         55        DO_ICALL                                         $17     
         56        ECHO                                                     $17
         57      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.38 ms | 1392 KiB | 19 Q