3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(STDIN); // null in hhvm, resource in php5 var_dump(\STDIN); // resource in hhvm, resource in php5
based on PNLcK
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
resource(1) of type (stream) resource(1) of type (stream)
Output for 5.2.3 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/MORDB on line 4 resource(1) of type (stream) resource(1) of type (stream)
Output for 4.3.0 - 5.0.5, 5.1.1 - 5.2.2
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/MORDB on line 4 Notice: Use of undefined constant STDIN - assumed 'STDIN' in /in/MORDB on line 3 string(5) "STDIN" Notice: Use of undefined constant STDIN - assumed 'STDIN' in /in/MORDB on line 4 string(5) "STDIN"
Output for 5.1.0
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/MORDB on line 4 Fatal error: fatal flex scanner internal error--end of buffer missed in /in/MORDB on line 4
Process exited with code 255.