3v4l.org

run code in 500+ PHP versions simultaneously
<?php $memory = memory_get_usage(); $array = range(1, 100000); echo (memory_get_usage() - $memory) / 1024 / 1024;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/c377f
function name:  (null)
number of ops:  15
compiled vars:  !0 = $memory, !1 = $array
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
    4     3        INIT_FCALL                                                   'range'
          4        SEND_VAL                                                     1
          5        SEND_VAL                                                     100000
          6        DO_ICALL                                             $4      
          7        ASSIGN                                                       !1, $4
    5     8        INIT_FCALL                                                   'memory_get_usage'
          9        DO_ICALL                                             $6      
         10        SUB                                                  ~7      $6, !0
         11        DIV                                                  ~8      ~7, 1024
         12        DIV                                                  ~9      ~8, 1024
         13        ECHO                                                         ~9
    6    14      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.17 ms | 3203 KiB | 15 Q