3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Create an empty file touch('empty.txt'); while (true) { include('empty.txt'); echo memory_get_usage() . "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 4
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 4
Branch analysis from position: 10
Branch analysis from position: 4
filename:       /in/R1KDW
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'touch'
          1        SEND_VAL                                                 'empty.txt'
          2        DO_ICALL                                                 
    6     3      > JMP                                                      ->9
    8     4    >   INCLUDE_OR_EVAL                                          'empty.txt', INCLUDE
    9     5        INIT_FCALL                                               'memory_get_usage'
          6        DO_ICALL                                         $2      
          7        CONCAT                                           ~3      $2, '%0A'
          8        ECHO                                                     ~3
    6     9    > > JMPNZ                                                    <true>, ->4
   10    10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.55 ms | 1385 KiB | 17 Q