3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function fdopen($id, $mode) { return fopen("/proc/self/fd/".(int)$id, $mode); } $stdin = fopen('php://stdin', 'r'); echo $stdin;
based on bopfe
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.2.6
Resource id #5
Output for hhvm-3.15.4
Resource id #4