3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = 1; fwrite('php://stdout', $a);
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
Warning: fwrite() expects parameter 1 to be resource, string given in /in/g1uPi on line 5
Output for 4.3.0 - 5.2.17
Warning: fwrite(): supplied argument is not a valid stream resource in /in/g1uPi on line 5