3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = 'g'; fwrite(STDOUT, $a);
Output for 5.2.3 - 7.1.0
g
Output for 4.3.0 - 5.2.2
Notice: Use of undefined constant STDOUT - assumed 'STDOUT' in /in/hKJGa on line 3 Warning: fwrite(): supplied argument is not a valid stream resource in /in/hKJGa on line 3