3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo memory_get_peak_usage() . "\n"; $var = ['hallo']; echo memory_get_peak_usage() . "\n"; $var['test'] = 'hallo'; echo memory_get_peak_usage() . "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BLoos
function name:  (null)
number of ops:  16
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'memory_get_peak_usage'
          1        DO_ICALL                                         $1      
          2        CONCAT                                           ~2      $1, '%0A'
          3        ECHO                                                     ~2
    5     4        ASSIGN                                                   !0, <array>
    7     5        INIT_FCALL                                               'memory_get_peak_usage'
          6        DO_ICALL                                         $4      
          7        CONCAT                                           ~5      $4, '%0A'
          8        ECHO                                                     ~5
    9     9        ASSIGN_DIM                                               !0, 'test'
         10        OP_DATA                                                  'hallo'
   11    11        INIT_FCALL                                               'memory_get_peak_usage'
         12        DO_ICALL                                         $7      
         13        CONCAT                                           ~8      $7, '%0A'
         14        ECHO                                                     ~8
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.17 ms | 1394 KiB | 15 Q