3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mfd = array(); $it = new DirectoryIterator("glob:///proc/self/fd/*"); foreach($it as $f) { $tmpArr = array(); $tmpArr['fd'] = $fd = fopen("php://fd/" . $f->getFilename(), 'r+'); $details = stream_get_meta_data($fd); $tmpArr['type'] = $details['stream_type']; $tmpArr['state'] = $details['blocked']; $tmpArr['uri'] = $details['uri']; $tmpArr['mode'] = $details['mode']; $tmpArr['filepath'] = readlink('/proc/self/fd/' . $f->getFilename()); $mfd[ $f->getFilename() ] = $tmpArr; } print_r($mfd);
Output for git.master, rfc.property-hooks
Array ( [3] => Array ( [fd] => Resource id #6 [type] => STDIO [state] => 1 [uri] => php://fd/3 [mode] => r+ [filepath] => /in/l3anu ) )
Output for git.master_jit
Array ( [3] => Array ( [fd] => Resource id #6 [type] => STDIO [state] => 1 [uri] => php://fd/3 [mode] => r+ [filepath] => /tmp/.ZendSem.Qyrfcs (deleted) ) [4] => Array ( [fd] => Resource id #7 [type] => STDIO [state] => 1 [uri] => php://fd/4 [mode] => r+ [filepath] => /in/l3anu ) )

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
35.76 ms | 401 KiB | 8 Q