3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i=0; $i<10; $i++) { $a = range(1, 10000); $a = null; echo memory_get_usage(true) . PHP_EOL; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 2
Branch analysis from position: 16
Branch analysis from position: 2
filename:       /in/K5h1u
function name:  (null)
number of ops:  17
compiled vars:  !0 = $i, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->14
    4     2    >   INIT_FCALL                                               'range'
          3        SEND_VAL                                                 1
          4        SEND_VAL                                                 10000
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
    5     7        ASSIGN                                                   !1, null
    6     8        INIT_FCALL                                               'memory_get_usage'
          9        SEND_VAL                                                 <true>
         10        DO_ICALL                                         $6      
         11        CONCAT                                           ~7      $6, '%0A'
         12        ECHO                                                     ~7
    2    13        PRE_INC                                                  !0
         14    >   IS_SMALLER                                               !0, 10
         15      > JMPNZ                                                    ~9, ->2
    7    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.29 ms | 1395 KiB | 17 Q