3v4l.org

run code in 300+ PHP versions simultaneously
<?php // This is only an example, the numbers below will // differ depending on your system echo memory_get_usage() . "\n"; // 36640 $a = str_repeat("Hello", 4242); echo memory_get_usage() . "\n"; // 57960 unset($a); echo memory_get_usage() . "\n"; // 36744
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hFZe9
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'memory_get_usage'
          1        DO_ICALL                                         $1      
          2        CONCAT                                           ~2      $1, '%0A'
          3        ECHO                                                     ~2
    8     4        INIT_FCALL                                               'str_repeat'
          5        SEND_VAL                                                 'Hello'
          6        SEND_VAL                                                 4242
          7        DO_ICALL                                         $3      
          8        ASSIGN                                                   !0, $3
   10     9        INIT_FCALL                                               'memory_get_usage'
         10        DO_ICALL                                         $5      
         11        CONCAT                                           ~6      $5, '%0A'
         12        ECHO                                                     ~6
   12    13        UNSET_CV                                                 !0
   14    14        INIT_FCALL                                               'memory_get_usage'
         15        DO_ICALL                                         $7      
         16        CONCAT                                           ~8      $7, '%0A'
         17        ECHO                                                     ~8
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.62 ms | 1394 KiB | 17 Q