3v4l.org

run code in 300+ PHP versions simultaneously
<html> <body> <?php $file=fopen("a.txt","r") or exit("Unable to open file!"); ?> </body> </html> --------------------------------------------------------------------------------
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JMKtj
function name:  (null)
number of ops:  11
compiled vars:  !0 = $file
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3Chtml%3E%0A%3Cbody%3E%0A%0A'
    5     1        INIT_FCALL                                               'fopen'
          2        SEND_VAL                                                 'a.txt'
          3        SEND_VAL                                                 'r'
          4        DO_ICALL                                         $1      
          5        ASSIGN                                           ~2      !0, $1
          6      > JMPNZ_EX                                         ~2      ~2, ->9
          7    > > EXIT                                                     'Unable+to+open+file%21'
          8*       BOOL                                             ~2      <true>
    7     9    >   ECHO                                                     '%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E+%0A%0A--------------------------------------------------------------------------------'
   11    10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.53 ms | 1394 KiB | 15 Q