3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(fopen('http://localhost/','w'));
Output for 5.2.5 - 5.6.28, 7.0.0 - 7.1.0
Warning: fopen(http://localhost/): failed to open stream: HTTP wrapper does not support writeable connections in /in/4mUTm on line 2 bool(false)
Output for hhvm-3.12.0
Warning: Failed to open http://localhost/ (cannot open a url stream for write/append operation: http://localhost/) in /in/4mUTm on line 2 bool(false)
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.2 - 5.2.4
Warning: fopen(http://localhost/): failed to open stream: HTTP wrapper does not support writeable connections. in /in/4mUTm on line 2 bool(false)
Output for 4.3.0 - 4.3.1
Warning: fopen(http://localhost/) [http://www.php.net/function.fopen]: failed to create stream: HTTP wrapper does not support writeable connections. in /in/4mUTm on line 2 bool(false)