3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo fopen('/', 'r')."\n"; for ($i = 0; $i < 100; $i++) is_readable('/'); echo fopen('/', 'r');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 8
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 8
Branch analysis from position: 14
Branch analysis from position: 8
filename:       /in/2cX45
function name:  (null)
number of ops:  20
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'fopen'
          1        SEND_VAL                                                 '%2F'
          2        SEND_VAL                                                 'r'
          3        DO_ICALL                                         $1      
          4        CONCAT                                           ~2      $1, '%0A'
          5        ECHO                                                     ~2
    5     6        ASSIGN                                                   !0, 0
          7      > JMP                                                      ->12
    6     8    >   INIT_FCALL                                               'is_readable'
          9        SEND_VAL                                                 '%2F'
         10        DO_ICALL                                                 
    5    11        PRE_INC                                                  !0
         12    >   IS_SMALLER                                               !0, 100
         13      > JMPNZ                                                    ~6, ->8
    8    14    >   INIT_FCALL                                               'fopen'
         15        SEND_VAL                                                 '%2F'
         16        SEND_VAL                                                 'r'
         17        DO_ICALL                                         $7      
         18        ECHO                                                     $7
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
185.46 ms | 1395 KiB | 17 Q