3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pass = str_repeat('a', 1024 * 512); $pass . 'x'; echo memory_get_peak_usage(), "\n", memory_get_peak_usage()/(1024*1024) . 'MB';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8mkd4
function name:  (null)
number of ops:  17
compiled vars:  !0 = $pass
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'str_repeat'
          1        SEND_VAL                                                 'a'
          2        SEND_VAL                                                 524288
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
    4     5        CONCAT                                           ~3      !0, 'x'
          6        FREE                                                     ~3
    6     7        INIT_FCALL                                               'memory_get_peak_usage'
          8        DO_ICALL                                         $4      
          9        ECHO                                                     $4
         10        ECHO                                                     '%0A'
         11        INIT_FCALL                                               'memory_get_peak_usage'
         12        DO_ICALL                                         $5      
         13        DIV                                              ~6      $5, 1048576
         14        CONCAT                                           ~7      ~6, 'MB'
         15        ECHO                                                     ~7
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.11 ms | 1386 KiB | 17 Q