3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
127.76 ms | 480 KiB | 11 Q