3v4l.org

run code in 300+ PHP versions simultaneously
<?php $startMemory = memory_get_usage(); $a =1; echo memory_get_usage() - $startMemory, ' bytes'; $a + 1;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4XA46
function name:  (null)
number of ops:  12
compiled vars:  !0 = $startMemory, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'memory_get_usage'
          1        DO_ICALL                                         $2      
          2        ASSIGN                                                   !0, $2
    4     3        ASSIGN                                                   !1, 1
    5     4        INIT_FCALL                                               'memory_get_usage'
          5        DO_ICALL                                         $5      
          6        SUB                                              ~6      $5, !0
          7        ECHO                                                     ~6
          8        ECHO                                                     '+bytes'
    7     9        ADD                                              ~7      !1, 1
         10        FREE                                                     ~7
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.53 ms | 1394 KiB | 15 Q