3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = []; print memory_get_usage() . PHP_EOL; $array['key1'] = 'val1'; print memory_get_usage() . PHP_EOL; $array['key2'] = 'val2'; print memory_get_usage() . PHP_EOL; $array['key3'] = 'val3'; print memory_get_usage() . PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SSZtM
function name:  (null)
number of ops:  24
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        DO_ICALL                                         $2      
          3        CONCAT                                           ~3      $2, '%0A'
          4        ECHO                                                     ~3
    6     5        ASSIGN_DIM                                               !0, 'key1'
          6        OP_DATA                                                  'val1'
    8     7        INIT_FCALL                                               'memory_get_usage'
          8        DO_ICALL                                         $5      
          9        CONCAT                                           ~6      $5, '%0A'
         10        ECHO                                                     ~6
   10    11        ASSIGN_DIM                                               !0, 'key2'
         12        OP_DATA                                                  'val2'
   12    13        INIT_FCALL                                               'memory_get_usage'
         14        DO_ICALL                                         $8      
         15        CONCAT                                           ~9      $8, '%0A'
         16        ECHO                                                     ~9
   14    17        ASSIGN_DIM                                               !0, 'key3'
         18        OP_DATA                                                  'val3'
   16    19        INIT_FCALL                                               'memory_get_usage'
         20        DO_ICALL                                         $11     
         21        CONCAT                                           ~12     $11, '%0A'
         22        ECHO                                                     ~12
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.88 ms | 1395 KiB | 15 Q