3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(); print memory_get_usage(true) . PHP_EOL; $array['key1'] = md5('val1'); print memory_get_usage(true) . PHP_EOL; $array['key2'] = 'val2'; print memory_get_usage(true) . PHP_EOL; $array['key3'] = 'val3'; print memory_get_usage(true) . PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MHFpA
function name:  (null)
number of ops:  31
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'memory_get_usage'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                         $2      
          4        CONCAT                                           ~3      $2, '%0A'
          5        ECHO                                                     ~3
    6     6        INIT_FCALL                                               'md5'
          7        SEND_VAL                                                 'val1'
          8        DO_ICALL                                         $5      
          9        ASSIGN_DIM                                               !0, 'key1'
         10        OP_DATA                                                  $5
    8    11        INIT_FCALL                                               'memory_get_usage'
         12        SEND_VAL                                                 <true>
         13        DO_ICALL                                         $6      
         14        CONCAT                                           ~7      $6, '%0A'
         15        ECHO                                                     ~7
   10    16        ASSIGN_DIM                                               !0, 'key2'
         17        OP_DATA                                                  'val2'
   12    18        INIT_FCALL                                               'memory_get_usage'
         19        SEND_VAL                                                 <true>
         20        DO_ICALL                                         $9      
         21        CONCAT                                           ~10     $9, '%0A'
         22        ECHO                                                     ~10
   14    23        ASSIGN_DIM                                               !0, 'key3'
         24        OP_DATA                                                  'val3'
   16    25        INIT_FCALL                                               'memory_get_usage'
         26        SEND_VAL                                                 <true>
         27        DO_ICALL                                         $12     
         28        CONCAT                                           ~13     $12, '%0A'
         29        ECHO                                                     ~13
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.47 ms | 1395 KiB | 17 Q