3v4l.org

run code in 300+ PHP versions simultaneously
<?PHP $path = $_SERVER['DOCUMENT_ROOT']; $dir = "."; echo '<table width="80%" border="1"> <tr> <td align="right">Path :</td> <td><a href="'.$path.'">Parent directory</a></td> <td>3</td> </tr>'; // Sort in ascending order - this is default $a = scandir($dir); foreach($a as $key => $value) { echo' <tr> <td>'.$value.'</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr>'; } echo '</table>'; ?>
Output for git.master, git.master_jit
<table width="80%" border="1"> <tr> <td align="right">Path :</td> <td><a href="">Parent directory</a></td> <td>3</td> </tr> Warning: scandir(): open_basedir restriction in effect. File(.) is not within the allowed path(s): (/tmp:/in:/etc) in /in/XJaqu on line 13 Warning: scandir(.): Failed to open directory: Operation not permitted in /in/XJaqu on line 13 Warning: scandir(): (errno 1): Operation not permitted in /in/XJaqu on line 13 Warning: foreach() argument must be of type array|object, bool given in /in/XJaqu on line 14 </table>
Output for rfc.property-hooks
<table width="80%" border="1"> <tr> <td align="right">Path :</td> <td><a href="">Parent directory</a></td> <td>3</td> </tr> Warning: scandir(): open_basedir restriction in effect. File(.) is not within the allowed path(s): (/tmp:/in:/etc) in /in/XJaqu on line 13 Warning: scandir(.): Failed to open directory: Operation not permitted in /in/XJaqu on line 13 Warning: scandir(): (errno 1): Operation not permitted in /in/XJaqu on line 13 Warning: foreach() argument must be of type array|object, false given in /in/XJaqu on line 14 </table>

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:
55.05 ms | 402 KiB | 8 Q