3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function fdopen($id, $mode) { return fopen("/proc/self/fd/".(int)$id, $mode); } echo file_get_contents("php://fd/3");
based on as00e
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.1.1, 7.1.7 - 7.2.6
Warning: file_get_contents(php://fd/3): failed to open stream: Error duping file descriptor 3; possibly it doesn't exist: [9]: Bad file descriptor in /in/3XNeN on line 8
Output for 7.1.2 - 7.1.6
Output for hhvm-3.15.4

Process exited with code 139.