3v4l.org

run code in 300+ PHP versions simultaneously
<?php $stream = fopen('php://output', 'a'); var_dump($stream); var_dump(is_resource($stream)); fclose($stream); var_dump(is_resource($stream)); var_dump($stream); fclose($stream);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DNupZ
function name:  (null)
number of ops:  26
compiled vars:  !0 = $stream
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'fopen'
          1        SEND_VAL                                                 'php%3A%2F%2Foutput'
          2        SEND_VAL                                                 'a'
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
    4     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
    5     8        INIT_FCALL                                               'var_dump'
          9        TYPE_CHECK                                  512  ~4      !0
         10        SEND_VAL                                                 ~4
         11        DO_ICALL                                                 
    6    12        INIT_FCALL                                               'fclose'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
    7    15        INIT_FCALL                                               'var_dump'
         16        TYPE_CHECK                                  512  ~7      !0
         17        SEND_VAL                                                 ~7
         18        DO_ICALL                                                 
    8    19        INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                                 
    9    22        INIT_FCALL                                               'fclose'
         23        SEND_VAR                                                 !0
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.6 ms | 1395 KiB | 19 Q