3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.01 ms | 1385 KiB | 15 Q