3v4l.org

run code in 300+ PHP versions simultaneously
<?php $startMemory = memory_get_usage(); $array = range(1, 100000); echo number_fromat((memory_get_usage() - $startMemory / 1024), 2), ' kb';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Yn6Od
function name:  (null)
number of ops:  19
compiled vars:  !0 = $startMemory, !1 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'memory_get_usage'
          1        DO_ICALL                                         $2      
          2        ASSIGN                                                   !0, $2
    3     3        INIT_FCALL                                               'range'
          4        SEND_VAL                                                 1
          5        SEND_VAL                                                 100000
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !1, $4
    4     8        INIT_FCALL_BY_NAME                                       'number_fromat'
          9        INIT_FCALL                                               'memory_get_usage'
         10        DO_ICALL                                         $6      
         11        DIV                                              ~7      !0, 1024
         12        SUB                                              ~8      $6, ~7
         13        SEND_VAL_EX                                              ~8
         14        SEND_VAL_EX                                              2
         15        DO_FCALL                                      0  $9      
         16        ECHO                                                     $9
         17        ECHO                                                     '+kb'
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.45 ms | 1394 KiB | 17 Q