3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.17 ms | 1394 KiB | 19 Q