3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.22 ms | 1398 KiB | 15 Q