3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(constant('STDOUT'));
based on Xnfco
Output for 5.2.3 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
resource(2) of type (stream)
Output for 4.3.2 - 5.2.2
Warning: constant(): Couldn't find constant STDOUT in /in/IOUnM on line 2 NULL
Output for 4.3.0 - 4.3.1
Warning: constant() [http://www.php.net/function.constant]: Couldn't find constant STDOUT in /in/IOUnM on line 2 NULL