3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo dirname($_SERVER['SCRIPT_FILENAME']); $dh = opendir(dirname($_SERVER['SCRIPT_FILENAME'])); while($filename = readdir($dh)) { // любые операции с вашим файлом, например $fs = filesize($filename); $ft = filetype($filename); echo "Имя: ".$filename."\nРазмер: ".$fs."\nТип:".$ft; } ?>
Output for git.master, git.master_jit, rfc.property-hooks
/in Warning: filesize(): open_basedir restriction in effect. File(.) is not within the allowed path(s): (/tmp:/in:/etc) in /in/lAYs2 on line 12 Warning: filetype(): open_basedir restriction in effect. File(.) is not within the allowed path(s): (/tmp:/in:/etc) in /in/lAYs2 on line 14 Имя: . Размер: Тип: Warning: filesize(): open_basedir restriction in effect. File(..) is not within the allowed path(s): (/tmp:/in:/etc) in /in/lAYs2 on line 12 Warning: filetype(): open_basedir restriction in effect. File(..) is not within the allowed path(s): (/tmp:/in:/etc) in /in/lAYs2 on line 14 Имя: .. Размер: Тип: Warning: filesize(): open_basedir restriction in effect. File(lAYs2) is not within the allowed path(s): (/tmp:/in:/etc) in /in/lAYs2 on line 12 Warning: filetype(): open_basedir restriction in effect. File(lAYs2) is not within the allowed path(s): (/tmp:/in:/etc) in /in/lAYs2 on line 14 Имя: lAYs2 Размер: Тип:

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:
48.95 ms | 403 KiB | 8 Q