3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(STDIN); fclose (STDIN); var_dump(STDIN);
based on QAI0q
Output for 5.2.3 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
resource(1) of type (stream) resource(1) of type (Unknown)
Output for 4.3.0 - 5.2.2
Notice: Use of undefined constant STDIN - assumed 'STDIN' in /in/F8LDj on line 2 string(5) "STDIN" Notice: Use of undefined constant STDIN - assumed 'STDIN' in /in/F8LDj on line 3 Warning: fclose(): supplied argument is not a valid stream resource in /in/F8LDj on line 3 Notice: Use of undefined constant STDIN - assumed 'STDIN' in /in/F8LDj on line 4 string(5) "STDIN"