3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = 'C:\Root/Home/Dir/Example'."\0".'Null'."\n".'NL\Bar'; $resource = fopen('/foo/bar.txt', "r"); var_dump(get_type($resource)); $resource = fopen($key, "r");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IMrhc
function name:  (null)
number of ops:  18
compiled vars:  !0 = $key, !1 = $resource
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'C%3A%5CRoot%2FHome%2FDir%2FExample%00Null%0ANL%5CBar'
    5     1        INIT_FCALL                                               'fopen'
          2        SEND_VAL                                                 '%2Ffoo%2Fbar.txt'
          3        SEND_VAL                                                 'r'
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    6     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL_BY_NAME                                       'get_type'
          8        SEND_VAR_EX                                              !1
          9        DO_FCALL                                      0  $5      
         10        SEND_VAR                                                 $5
         11        DO_ICALL                                                 
    7    12        INIT_FCALL                                               'fopen'
         13        SEND_VAR                                                 !0
         14        SEND_VAL                                                 'r'
         15        DO_ICALL                                         $7      
         16        ASSIGN                                                   !1, $7
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.28 ms | 1394 KiB | 17 Q