3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.32 ms | 1394 KiB | 15 Q