3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = []; $mem = mem_get_real_usage(true); echo $mem; $c = new \stdClass(); $a[] = $c; echo mem_get_real_usage(true) - $mem; $a[] = $c; echo mem_get_real_usage(true) - $mem;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aIvnc
function name:  (null)
number of ops:  24
compiled vars:  !0 = $a, !1 = $mem, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL_BY_NAME                                       'mem_get_real_usage'
          2        SEND_VAL_EX                                              <true>
          3        DO_FCALL                                      0  $4      
          4        ASSIGN                                                   !1, $4
    6     5        ECHO                                                     !1
    8     6        NEW                                              $6      'stdClass'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !2, $6
    9     9        ASSIGN_DIM                                               !0
         10        OP_DATA                                                  !2
   11    11        INIT_FCALL_BY_NAME                                       'mem_get_real_usage'
         12        SEND_VAL_EX                                              <true>
         13        DO_FCALL                                      0  $10     
         14        SUB                                              ~11     $10, !1
         15        ECHO                                                     ~11
   13    16        ASSIGN_DIM                                               !0
         17        OP_DATA                                                  !2
   15    18        INIT_FCALL_BY_NAME                                       'mem_get_real_usage'
         19        SEND_VAL_EX                                              <true>
         20        DO_FCALL                                      0  $13     
         21        SUB                                              ~14     $13, !1
         22        ECHO                                                     ~14
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.84 ms | 1394 KiB | 13 Q