3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php fopen('php://fd/15', 'r');
Output for 5.3.6 - 5.6.28, 7.0.0 - 7.1.0
Warning: fopen(php://fd/15): failed to open stream: Error duping file descriptor 15; possibly it doesn't exist: [9]: Bad file descriptor in /in/Cp1OQ on line 1
Output for hhvm-3.10.0 - 3.12.0
Output for 5.2.7 - 5.3.5
Warning: fopen(): Invalid php:// URL specified in /in/Cp1OQ on line 1 Warning: fopen(php://fd/15): failed to open stream: operation failed in /in/Cp1OQ on line 1
Output for 5.2.1 - 5.2.6
Warning: fopen(): Invalid php:// URL specified in /in/Cp1OQ on line 1 Warning: fopen(php://fd/15): failed to open stream: Inappropriate ioctl for device in /in/Cp1OQ on line 1
Output for 4.3.2, 5.0.0 - 5.2.0
Warning: fopen(php://fd/15): failed to open stream: Inappropriate ioctl for device in /in/Cp1OQ on line 1
Output for 4.3.3 - 4.4.9
Warning: fopen(php://fd/15): failed to open stream: Success in /in/Cp1OQ on line 1
Output for 4.3.0 - 4.3.1
Warning: fopen(php://fd/15) [http://www.php.net/function.fopen]: failed to create stream: Inappropriate ioctl for device in /in/Cp1OQ on line 1