3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.05 ms | 1394 KiB | 17 Q