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, ',', '.')."\n"; $dataForObject = []; for( $i =0 ; $i < 50000 ; $i++) { $dataForObject[] = md5('test'); } echo number_format(memory_get_usage(), 0, ',', '.')."\n"; echo number_format(memory_get_usage(true), 0, ',', '.')."\n"; unset($dataForObject); 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 = 42) Position 1 = 63
Branch analysis from position: 63
2 jumps found. (Code = 44) Position 1 = 65, Position 2 = 57
Branch analysis from position: 65
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 57
2 jumps found. (Code = 44) Position 1 = 65, Position 2 = 57
Branch analysis from position: 65
Branch analysis from position: 57
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/bL0ot
function name:  (null)
number of ops:  108
compiled vars:  !0 = $data, !1 = $i, !2 = $dataForObject
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                                         $6      
          6        ASSIGN_DIM                                               !0
          7        OP_DATA                                                  $6
    3     8        PRE_INC                                                  !1
          9    >   IS_SMALLER                                               !1, 50000
         10      > JMPNZ                                                    ~8, ->3
    7    11    >   INIT_FCALL                                               'number_format'
         12        INIT_FCALL                                               'memory_get_usage'
         13        DO_ICALL                                         $9      
         14        SEND_VAR                                                 $9
         15        SEND_VAL                                                 0
         16        SEND_VAL                                                 '%2C'
         17        SEND_VAL                                                 '.'
         18        DO_ICALL                                         $10     
         19        CONCAT                                           ~11     $10, '%0A'
         20        ECHO                                                     ~11
    8    21        INIT_FCALL                                               'number_format'
         22        INIT_FCALL                                               'memory_get_usage'
         23        SEND_VAL                                                 <true>
         24        DO_ICALL                                         $12     
         25        SEND_VAR                                                 $12
         26        SEND_VAL                                                 0
         27        SEND_VAL                                                 '%2C'
         28        SEND_VAL                                                 '.'
         29        DO_ICALL                                         $13     
         30        CONCAT                                           ~14     $13, '%0A'
         31        ECHO                                                     ~14
   10    32        UNSET_CV                                                 !0
   12    33        INIT_FCALL                                               'number_format'
         34        INIT_FCALL                                               'memory_get_usage'
         35        DO_ICALL                                         $15     
         36        SEND_VAR                                                 $15
         37        SEND_VAL                                                 0
         38        SEND_VAL                                                 '%2C'
         39        SEND_VAL                                                 '.'
         40        DO_ICALL                                         $16     
         41        CONCAT                                           ~17     $16, '%0A'
         42        ECHO                                                     ~17
   13    43        INIT_FCALL                                               'number_format'
         44        INIT_FCALL                                               'memory_get_usage'
         45        SEND_VAL                                                 <true>
         46        DO_ICALL                                         $18     
         47        SEND_VAR                                                 $18
         48        SEND_VAL                                                 0
         49        SEND_VAL                                                 '%2C'
         50        SEND_VAL                                                 '.'
         51        DO_ICALL                                         $19     
         52        CONCAT                                           ~20     $19, '%0A'
         53        ECHO                                                     ~20
   16    54        ASSIGN                                                   !2, <array>
   17    55        ASSIGN                                                   !1, 0
         56      > JMP                                                      ->63
   18    57    >   INIT_FCALL                                               'md5'
         58        SEND_VAL                                                 'test'
         59        DO_ICALL                                         $24     
         60        ASSIGN_DIM                                               !2
         61        OP_DATA                                                  $24
   17    62        PRE_INC                                                  !1
         63    >   IS_SMALLER                                               !1, 50000
         64      > JMPNZ                                                    ~26, ->57
   21    65    >   INIT_FCALL                                               'number_format'
         66        INIT_FCALL                                               'memory_get_usage'
         67        DO_ICALL                                         $27     
         68        SEND_VAR                                                 $27
         69        SEND_VAL                                                 0
         70        SEND_VAL                                                 '%2C'
         71        SEND_VAL                                                 '.'
         72        DO_ICALL                                         $28     
         73        CONCAT                                           ~29     $28, '%0A'
         74        ECHO                                                     ~29
   22    75        INIT_FCALL                                               'number_format'
         76        INIT_FCALL                                               'memory_get_usage'
         77        SEND_VAL                                                 <true>
         78        DO_ICALL                                         $30     
         79        SEND_VAR                                                 $30
         80        SEND_VAL                                                 0
         81        SEND_VAL                                                 '%2C'
         82        SEND_VAL                                                 '.'
         83        DO_ICALL                                         $31     
         84        CONCAT                                           ~32     $31, '%0A'
         85        ECHO                                                     ~32
   24    86        UNSET_CV                                                 !2
   26    87        INIT_FCALL                                               'number_format'
         88        INIT_FCALL                                               'memory_get_usage'
         89        DO_ICALL                                         $33     
         90        SEND_VAR                                                 $33
         91        SEND_VAL                                                 0
         92        SEND_VAL                                                 '%2C'
         93        SEND_VAL                                                 '.'
         94        DO_ICALL                                         $34     
         95        CONCAT                                           ~35     $34, '%0A'
         96        ECHO                                                     ~35
   27    97        INIT_FCALL                                               'number_format'
         98        INIT_FCALL                                               'memory_get_usage'
         99        SEND_VAL                                                 <true>
        100        DO_ICALL                                         $36     
        101        SEND_VAR                                                 $36
        102        SEND_VAL                                                 0
        103        SEND_VAL                                                 '%2C'
        104        SEND_VAL                                                 '.'
        105        DO_ICALL                                         $37     
        106        ECHO                                                     $37
        107      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.96 ms | 1404 KiB | 19 Q