3v4l.org

run code in 300+ PHP versions simultaneously
<?php $h=tmpfile(); if($h===false){throw new Exception('tmpfile() failed!');}; $hh=$h; $h=stream_get_meta_data($h); $h=$h['uri']; var_dump(fopen($h,'r'));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 9
Branch analysis from position: 5
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JF2nd
function name:  (null)
number of ops:  24
compiled vars:  !0 = $h, !1 = $hh
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'tmpfile'
          1        DO_ICALL                                         $2      
          2        ASSIGN                                                   !0, $2
    4     3        TYPE_CHECK                                    4          !0
          4      > JMPZ                                                     ~4, ->9
          5    >   NEW                                              $5      'Exception'
          6        SEND_VAL_EX                                              'tmpfile%28%29+failed%21'
          7        DO_FCALL                                      0          
          8      > THROW                                         0          $5
    5     9    >   ASSIGN                                                   !1, !0
    6    10        INIT_FCALL                                               'stream_get_meta_data'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $8      
         13        ASSIGN                                                   !0, $8
    7    14        FETCH_DIM_R                                      ~10     !0, 'uri'
         15        ASSIGN                                                   !0, ~10
    8    16        INIT_FCALL                                               'var_dump'
         17        INIT_FCALL                                               'fopen'
         18        SEND_VAR                                                 !0
         19        SEND_VAL                                                 'r'
         20        DO_ICALL                                         $12     
         21        SEND_VAR                                                 $12
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.82 ms | 1395 KiB | 21 Q