3v4l.org

run code in 500+ PHP versions simultaneously
<?php for ($i = 0; $i < 10; $i++) { eval('return function() {};'); gc_collect_cycles(); $new = memory_get_usage(); if (isset($old)) { echo ($new - $old) . "\n"; } $old = $new; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 2
Branch analysis from position: 17
Branch analysis from position: 2
Branch analysis from position: 13
filename:       /in/3p4sl
function name:  (null)
number of ops:  18
compiled vars:  !0 = $i, !1 = $new, !2 = $old
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 0
          1      > JMP                                                          ->15
    4     2    >   INCLUDE_OR_EVAL                                              'return+function%28%29+%7B%7D%3B', EVAL
    5     3        INIT_FCALL                                                   'gc_collect_cycles'
          4        DO_ICALL                                                     
    6     5        INIT_FCALL                                                   'memory_get_usage'
          6        DO_ICALL                                             $6      
          7        ASSIGN                                                       !1, $6
    7     8        ISSET_ISEMPTY_CV                                             !2
          9      > JMPZ                                                         ~8, ->13
    8    10    >   SUB                                                  ~9      !1, !2
         11        CONCAT                                               ~10     ~9, '%0A'
         12        ECHO                                                         ~10
   10    13    >   ASSIGN                                                       !2, !1
    3    14        PRE_INC                                                      !0
         15    >   IS_SMALLER                                                   !0, 10
         16      > JMPNZ                                                        ~13, ->2
   11    17    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
170.44 ms | 3053 KiB | 15 Q