3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.02 ms | 1394 KiB | 19 Q