3v4l.org

run code in 500+ PHP versions simultaneously
<?php if (isset($fromRequire)) { return; function xxx() {} 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 = 5
Branch analysis from position: 2
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 7
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 23
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 7
Branch analysis from position: 26
Branch analysis from position: 7
Branch analysis from position: 23
filename:       /in/NOejV
function name:  (null)
number of ops:  27
compiled vars:  !0 = $fromRequire, !1 = $i
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ISSET_ISEMPTY_CV                                             !0
          1      > JMPZ                                                         ~2, ->5
    4     2    > > RETURN                                                       null
    5     3*       DECLARE_FUNCTION                                             'xxx'
    7     4*       RETURN                                                       null
   10     5    >   ASSIGN                                                       !1, 0
          6      > JMP                                                          ->24
   11     7    >   ASSIGN                                                       !0, <true>
   12     8        INCLUDE_OR_EVAL                                              '%2Fin%2FNOejV', REQUIRE
   14     9        MOD                                                  ~6      !1, 1000
         10        IS_IDENTICAL                                                 ~6, 0
         11      > JMPZ                                                         ~7, ->23
   15    12    >   INIT_FCALL                                                   'gc_collect_cycles'
         13        DO_ICALL                                                     
   16    14        INIT_FCALL                                                   'round'
         15        INIT_FCALL                                                   'memory_get_usage'
         16        DO_ICALL                                             $9      
         17        DIV                                                  ~10     $9, 1048576
         18        SEND_VAL                                                     ~10
         19        SEND_VAL                                                     3
         20        DO_ICALL                                             $11     
         21        CONCAT                                               ~12     $11, '+MiB%0A'
         22        ECHO                                                         ~12
   10    23    >   PRE_INC                                                      !1
         24    >   IS_SMALLER                                                   !1, 10000
         25      > JMPNZ                                                        ~14, ->7
   18    26    > > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NOejV
function name:  xxx
number of ops:  1
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E > > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.35 ms | 1606 KiB | 16 Q