3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (isset($fromRequire)) { // return; // leaking even if code below is never executed $class = new class() extends \stdClass {}; return; } for ($i = 0; $i < 10 * 1000; $i++) { $fromRequire = true; require __FILE__; if (($i % (1000)) === 0) { gc_collect_cycles(); echo round(memory_get_usage() / (1024 * 1024), 3) . " MiB\n"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 2, Position 2 = 7
Branch analysis from position: 2
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 9
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 25
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 9
Branch analysis from position: 28
Branch analysis from position: 9
Branch analysis from position: 25
filename:       /in/nUFqX
function name:  (null)
number of ops:  29
compiled vars:  !0 = $fromRequire, !1 = $class, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ISSET_ISEMPTY_CV                                         !0
          1      > JMPZ                                                     ~3, ->7
    5     2    >   DECLARE_ANON_CLASS                               <array> 'stdclass'
          3        NEW                                              $5      $4
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $5
    7     6      > RETURN                                                   null
   10     7    >   ASSIGN                                                   !2, 0
          8      > JMP                                                      ->26
   11     9    >   ASSIGN                                                   !0, <true>
   12    10        INCLUDE_OR_EVAL                                          '%2Fin%2FnUFqX', REQUIRE
   14    11        MOD                                              ~11     !2, 1000
         12        IS_IDENTICAL                                             ~11, 0
         13      > JMPZ                                                     ~12, ->25
   15    14    >   INIT_FCALL                                               'gc_collect_cycles'
         15        DO_ICALL                                                 
   16    16        INIT_FCALL                                               'round'
         17        INIT_FCALL                                               'memory_get_usage'
         18        DO_ICALL                                         $14     
         19        DIV                                              ~15     $14, 1048576
         20        SEND_VAL                                                 ~15
         21        SEND_VAL                                                 3
         22        DO_ICALL                                         $16     
         23        CONCAT                                           ~17     $16, '+MiB%0A'
         24        ECHO                                                     ~17
   10    25    >   PRE_INC                                                  !2
         26    >   IS_SMALLER                                               !2, 10000
         27      > JMPNZ                                                    ~19, ->9
   18    28    > > RETURN                                                   1

Class stdClass@anonymous: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.46 ms | 1396 KiB | 19 Q