3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = memory_get_usage(); $b = memory_get_usage(); $a = memory_get_usage(); $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/YqVbC
function name:  (null)
number of ops:  17
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        INIT_DYNAMIC_CALL                                        !2
         10        DO_FCALL                                      0          
    7    11        INIT_FCALL                                               'memory_get_usage'
         12        DO_ICALL                                         $10     
         13        ASSIGN                                                   !1, $10
    9    14        SUB                                              ~12     !1, !0
         15        ECHO                                                     ~12
   10    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.19 ms | 1386 KiB | 15 Q