3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 'foo'; var_dump(memory_get_usage()); foreach (range(1,100) as $i) { $$i = $foo; } var_dump(memory_get_usage());
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/fVDt8
function name:  (null)
number of ops:  22
compiled vars:  !0 = $foo, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'foo'
    3     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'memory_get_usage'
          3        DO_ICALL                                         $3      
          4        SEND_VAR                                                 $3
          5        DO_ICALL                                                 
    4     6        INIT_FCALL                                               'range'
          7        SEND_VAL                                                 1
          8        SEND_VAL                                                 100
          9        DO_ICALL                                         $5      
         10      > FE_RESET_R                                       $6      $5, ->15
         11    > > FE_FETCH_R                                               $6, !1, ->15
    5    12    >   FETCH_W                      local               $7      !1
         13        ASSIGN                                                   $7, !0
    4    14      > JMP                                                      ->11
         15    >   FE_FREE                                                  $6
    7    16        INIT_FCALL                                               'var_dump'
         17        INIT_FCALL                                               'memory_get_usage'
         18        DO_ICALL                                         $9      
         19        SEND_VAR                                                 $9
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.57 ms | 1386 KiB | 19 Q