3v4l.org

run code in 300+ PHP versions simultaneously
<?php if($a = opendir(".")){ while($b = readdir($a)){ if(is_file($b)){ if(is_writable($b)){ echo "File ".$b." is writable<br />\n"; } else { echo "File ".$b." is not writable<br />\n"; } } elseif(is_dir($b)){ if(is_writable($b)){ echo "DIR ".$b." is writable<br />\n"; } else { echo "DIR ".$b." is not writable<br />\n"; } } } } else { echo "Can't opendir()"; } ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: opendir(): open_basedir restriction in effect. File(.) is not within the allowed path(s): (/tmp:/in:/etc) in /in/7oWUL on line 2 Warning: opendir(.): Failed to open directory: Operation not permitted in /in/7oWUL on line 2 Can't opendir()

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:
67.5 ms | 401 KiB | 8 Q