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(); var_dump($b - $a); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mr6Se
function name:  (null)
number of ops:  19
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        INIT_FCALL                                               'var_dump'
         15        SUB                                              ~12     !1, !0
         16        SEND_VAL                                                 ~12
         17        DO_ICALL                                                 
   10    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.65 ms | 1394 KiB | 17 Q