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/7");
based on gAbi7
Output for 5.6.0 - 5.6.38, 7.0.0 - 7.3.1
Warning: file_get_contents(php://fd/7): failed to open stream: Error duping file descriptor 7; possibly it doesn't exist: [9]: Bad file descriptor in /in/bopfe on line 8
Output for hhvm-3.15.4