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 fdopen(8,'r');
based on AmBiT
Output for 7.3.0rc3
Warning: fopen(): open_basedir restriction in effect. File(/proc/self/fd/8) is not within the allowed path(s): (/tmp:/in:/etc) in /in/6qMRq on line 4 Warning: fopen(/proc/self/fd/8): failed to open stream: Operation not permitted in /in/6qMRq on line 4
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.1.10, 7.2.0, 7.3.0alpha1 - 7.3.0beta1
Warning: fopen(/proc/self/fd/8): failed to open stream: No such file or directory in /in/6qMRq on line 4
Output for 7.1.20, 7.2.6
Warning: fopen(): open_basedir restriction in effect. File(/proc/self/fd/8) is not within the allowed path(s): (/tmp:/in) in /in/6qMRq on line 4 Warning: fopen(/proc/self/fd/8): failed to open stream: Operation not permitted in /in/6qMRq on line 4
Output for hhvm-3.15.4
Warning: No such file or directory in /in/6qMRq on line 4