3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = memory_get_usage(); $a=255; var_dump(memory_get_usage()-$s); $b = $a;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EvnjW
function name:  (null)
number of ops:  12
compiled vars:  !0 = $s, !1 = $a, !2 = $b
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        ASSIGN                                                   !1, 255
    4     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'memory_get_usage'
          6        DO_ICALL                                         $6      
          7        SUB                                              ~7      $6, !0
          8        SEND_VAL                                                 ~7
          9        DO_ICALL                                                 
    5    10        ASSIGN                                                   !2, !1
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.19 ms | 1394 KiB | 17 Q