3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = memory_get_usage(true); $str = str_repeat('0123456789', 100); var_dump(memory_get_usage(true) - $start);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hu4p8
function name:  (null)
number of ops:  17
compiled vars:  !0 = $start, !1 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'memory_get_usage'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    5     4        INIT_FCALL                                               'str_repeat'
          5        SEND_VAL                                                 '0123456789'
          6        SEND_VAL                                                 100
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !1, $4
    7     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'memory_get_usage'
         11        SEND_VAL                                                 <true>
         12        DO_ICALL                                         $6      
         13        SUB                                              ~7      $6, !0
         14        SEND_VAL                                                 ~7
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.92 ms | 1394 KiB | 19 Q