3v4l.org

run code in 300+ PHP versions simultaneously
<?php $projectRoot = sys_get_temp_dir() . "/test"; mkdir($projectRoot, 0777, true); touch("$projectRoot/file1.php"); mkdir("$projectRoot/folder", 0777, true); touch("$projectRoot/folder/evenmoar.php"); touch("$projectRoot/folder/moarcode.php"); chdir($projectRoot); $dirIterator = new RecursiveDirectoryIterator(".", FilesystemIterator::SKIP_DOTS); $iterator = new RecursiveIteratorIterator($dirIterator); foreach($iterator as $file) { echo $file; }
Output for 8.1.25 - 8.1.27, 8.2.12 - 8.2.17, 8.3.0 - 8.3.4
./file1.php./folder/evenmoar.php./folder/moarcode.php
Output for 5.3.0 - 5.3.4, 5.3.7 - 5.3.8, 5.3.10 - 5.3.24, 5.3.26, 5.4.0, 5.4.2 - 5.4.4, 5.4.6 - 5.4.11, 5.4.13 - 5.4.15, 5.4.18, 5.4.21 - 5.4.22, 5.4.24 - 5.4.27, 5.4.29 - 5.4.32, 5.4.34, 5.4.36 - 5.4.40, 5.4.42, 5.4.44, 5.5.0, 5.5.2 - 5.5.8, 5.5.10, 5.5.12 - 5.5.20, 5.5.23 - 5.5.26, 5.5.28, 5.5.30 - 5.5.33, 5.5.35 - 5.5.38, 5.6.0, 5.6.2, 5.6.6 - 5.6.8, 5.6.10 - 5.6.11, 5.6.14 - 5.6.15, 5.6.17 - 5.6.18, 5.6.21 - 5.6.24, 5.6.26 - 5.6.28, 5.6.31 - 5.6.32, 5.6.34 - 5.6.35, 5.6.37, 5.6.39 - 5.6.40, 7.0.0 - 7.0.7, 7.0.9 - 7.0.10, 7.0.13 - 7.0.14, 7.0.16 - 7.0.17, 7.0.19, 7.0.24 - 7.0.31, 7.0.33, 7.1.2 - 7.1.3, 7.1.5 - 7.1.6, 7.1.9 - 7.1.18, 7.1.20 - 7.1.24, 7.1.26 - 7.1.27, 7.1.29 - 7.1.31, 7.1.33, 7.2.0, 7.2.2, 7.2.5 - 7.2.12, 7.2.16 - 7.2.17, 7.2.19 - 7.2.21, 7.2.23 - 7.2.24, 7.2.26 - 7.2.33, 7.3.3, 7.3.5 - 7.3.6, 7.3.8 - 7.3.11, 7.3.16 - 7.3.31, 7.4.0, 7.4.3 - 7.4.25, 8.0.0 - 8.0.12, 8.0.30, 8.1.21 - 8.1.24, 8.2.8 - 8.2.11
./folder/moarcode.php./folder/evenmoar.php./file1.php
Output for 8.0.29, 8.1.17 - 8.1.20, 8.2.4 - 8.2.7
Warning: mkdir(): File exists in /in/p6UfZ on line 4 Warning: touch(): Unable to create file /tmp/test/file1.php because Permission denied in /in/p6UfZ on line 5 Warning: mkdir(): Permission denied in /in/p6UfZ on line 6 Warning: touch(): Unable to create file /tmp/test/folder/evenmoar.php because Permission denied in /in/p6UfZ on line 7 Warning: touch(): Unable to create file /tmp/test/folder/moarcode.php because Permission denied in /in/p6UfZ on line 8 Warning: chdir(): Permission denied (errno 13) in /in/p6UfZ on line 10 Fatal error: Uncaught UnexpectedValueException: RecursiveDirectoryIterator::__construct(): open_basedir restriction in effect. File(.) is not within the allowed path(s): (/tmp:/in:/etc) in /in/p6UfZ:11 Stack trace: #0 /in/p6UfZ(11): RecursiveDirectoryIterator->__construct('.', 4096) #1 {main} thrown in /in/p6UfZ on line 11
Process exited with code 255.
Output for 5.3.28, 5.5.1, 5.6.12, 7.4.27, 8.0.16, 8.0.24, 8.1.0 - 8.1.12, 8.2.1 - 8.2.3
Warning: mkdir(): File exists in /in/p6UfZ on line 4 ./folder/moarcode.php./folder/evenmoar.php./file1.php
Output for 8.0.27, 8.2.0
Warning: mkdir(): File exists in /in/p6UfZ on line 4 ./folder/moarcode.php./folder/evenmoar.php./file1.php./file-phar
Output for 8.1.16
Warning: mkdir(): File exists in /in/p6UfZ on line 4 ./folder/moarcode.php./folder/evenmoar.php./file1.php./1234F1jXIT./9.txt./8.txt./7.txt./6.txt./5.txt./4.txt./3.txt./2.txt./1.txt./0.txt./file.csv
Output for 8.1.15
Warning: mkdir(): File exists in /in/p6UfZ on line 4 Warning: mkdir(): File exists in /in/p6UfZ on line 6 ./1234lrzEVA./9.txt./8.txt./7.txt./6.txt./5.txt./4.txt./3.txt./2.txt./1.txt./0.txt./file.csv./rambo.tmp./.anyhidden./example.txt./folder/moarcode.php./folder/evenmoar.php./file1.php
Output for 8.0.14, 8.0.17 - 8.0.20, 8.1.13 - 8.1.14
Warning: mkdir(): File exists in /in/p6UfZ on line 4 Warning: touch(): open_basedir restriction in effect. File(/tmp/test/file1.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/p6UfZ on line 5 Warning: mkdir(): open_basedir restriction in effect. File(/tmp/test/folder) is not within the allowed path(s): (/tmp:/in:/etc) in /in/p6UfZ on line 6 Warning: touch(): open_basedir restriction in effect. File(/tmp/test/folder/evenmoar.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/p6UfZ on line 7 Warning: touch(): open_basedir restriction in effect. File(/tmp/test/folder/moarcode.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/p6UfZ on line 8 Warning: chdir(): Not a directory (errno 20) in /in/p6UfZ on line 10 Fatal error: Uncaught UnexpectedValueException: RecursiveDirectoryIterator::__construct(): open_basedir restriction in effect. File(.) is not within the allowed path(s): (/tmp:/in:/etc) in /in/p6UfZ:11 Stack trace: #0 /in/p6UfZ(11): RecursiveDirectoryIterator->__construct('.', 4096) #1 {main} thrown in /in/p6UfZ on line 11
Process exited with code 255.
Output for 8.0.28
Warning: mkdir(): File exists in /in/p6UfZ on line 4 Warning: mkdir(): File exists in /in/p6UfZ on line 6 ./file1.php./1234ubnMD1./9.txt./8.txt./7.txt./6.txt./5.txt./4.txt./3.txt./2.txt./1.txt./0.txt./file.csv./folder/moarcode.php./folder/evenmoar.php
Output for 8.0.26
Warning: mkdir(): File exists in /in/p6UfZ on line 4 ./folder/moarcode.php./folder/evenmoar.php./file1.php./1234Eg6ZXf./rambo.tmp./example.txt./12346RZfcq./9.txt./8.txt./7.txt./6.txt./5.txt./4.txt./3.txt./2.txt./1.txt./0.txt./.anyhidden./file.csv
Output for 8.0.25
Warning: mkdir(): File exists in /in/p6UfZ on line 4 Warning: mkdir(): File exists in /in/p6UfZ on line 6 ./1234oDZeoN./9.txt./8.txt./7.txt./6.txt./5.txt./4.txt./3.txt./2.txt./1.txt./0.txt./file.csv./rambo.tmp./.anyhidden./example.txt./folder/moarcode.php./folder/evenmoar.php./file1.php
Output for 8.0.23
Warning: mkdir(): File exists in /in/p6UfZ on line 4 Warning: mkdir(): File exists in /in/p6UfZ on line 6 ./1234iyiD3i./9.txt./8.txt./7.txt./6.txt./5.txt./4.txt./3.txt./2.txt./1.txt./0.txt./file.csv./rambo.tmp./.anyhidden./example.txt./folder/moarcode.php./folder/evenmoar.php./file1.php
Output for 8.0.22
Warning: mkdir(): File exists in /in/p6UfZ on line 4 Warning: mkdir(): File exists in /in/p6UfZ on line 6 ./12342s53v5./9.txt./8.txt./7.txt./6.txt./5.txt./4.txt./3.txt./2.txt./1.txt./0.txt./file.csv./rambo.tmp./.anyhidden./example.txt./folder/moarcode.php./folder/evenmoar.php./file1.php
Output for 8.0.21
Warning: mkdir(): File exists in /in/p6UfZ on line 4 ./folder/moarcode.php./folder/evenmoar.php./file1.php./1234rD8YhN./9.txt./8.txt./7.txt./6.txt./5.txt./4.txt./3.txt./2.txt./1.txt./0.txt
Output for 8.0.15
Warning: mkdir(): File exists in /in/p6UfZ on line 4 Warning: mkdir(): File exists in /in/p6UfZ on line 6 ./1234vb6X7A./9.txt./8.txt./7.txt./6.txt./5.txt./4.txt./3.txt./2.txt./1.txt./0.txt./file.csv./rambo.tmp./.anyhidden./example.txt./folder/moarcode.php./folder/evenmoar.php./file1.php
Output for 8.0.13
Warning: mkdir(): File exists in /in/p6UfZ on line 4 Warning: touch(): Unable to create file /tmp/test/file1.php because Not a directory in /in/p6UfZ on line 5 Warning: mkdir(): Not a directory in /in/p6UfZ on line 6 Warning: touch(): Unable to create file /tmp/test/folder/evenmoar.php because Not a directory in /in/p6UfZ on line 7 Warning: touch(): Unable to create file /tmp/test/folder/moarcode.php because Not a directory in /in/p6UfZ on line 8 Warning: chdir(): Not a directory (errno 20) in /in/p6UfZ on line 10 ./var/lib/pacman/local/ALPM_DB_VERSION./var/lib/pacman/local/iana-etc-20210903-1/mtree./var/lib/pacman/local/iana-etc-20210903-1/desc./var/lib/pacman/local/iana-etc-20210903-1/files./var/lib/pacman/local/filesystem-2021.05.31-1/mtree./var/lib/pacman/local/filesystem-2021.05.31-1/desc./var/lib/pacman/local/filesystem-2021.05.31-1/files./var/lib/pacman/sync/core.db./var/lib/pacman/sync/extra.db./var/lib/pacman/sync/community.db./var/log/pacman.log./var/lock./var/mail./var/run./var/tmp/6b8700d54bcfa50c24bafbce9b4e9e2e.bak./dev/stderr./dev/stdout./dev/stdin./dev/fd./dev/core./dev/tty./dev/urandom./dev/random./dev/full./dev/zero./dev/null./dev/log./dev/mqueue/262c58d032ce3e619e0ca3cc2830d98a.bak./dev/mqueue/.default./dev/shm/test.txt./dev/shm/f632a8b80df58e9c99799e190f15da9e.bak./dev/shm/PostgreSQL.276423678./dev/shm/PostgreSQL.222257071./dev/shm/PostgreSQL.1703417217./dev/char/5:0./dev/char/1:9./dev/char/1:8./dev/char/1:7./dev/char/1:5./dev/char/1:3./dev/char/5:2./dev/ptmx./dev/pts/ptmx./run/phpversions.php./run/config.all.php./run/49e2b80d02c1530c6da24fa93f75dc21.bak./run/54b7c725dfff3b7d39f530de7d7e5821.bak Fatal error: Uncaught UnexpectedValueException: RecursiveDirectoryIterator::__construct(./run/systemd/incoming): Failed to open directory: Permission denied in /in/p6UfZ:13 Stack trace: #0 [internal function]: RecursiveDirectoryIterator->__construct('./run/systemd/i...', 4096) #1 /in/p6UfZ(13): RecursiveDirectoryIterator->getChildren() #2 {main} thrown in /in/p6UfZ on line 13
Process exited with code 255.
Output for 7.4.33
Warning: mkdir(): File exists in /in/p6UfZ on line 4 Warning: touch(): Unable to create file /tmp/test/file1.php because Not a directory in /in/p6UfZ on line 5 Warning: mkdir(): Not a directory in /in/p6UfZ on line 6 Warning: touch(): Unable to create file /tmp/test/folder/evenmoar.php because Not a directory in /in/p6UfZ on line 7 Warning: touch(): Unable to create file /tmp/test/folder/moarcode.php because Not a directory in /in/p6UfZ on line 8 Warning: chdir(): Not a directory (errno 20) in /in/p6UfZ on line 10 ./var/lib/pacman/local/ALPM_DB_VERSION./var/lib/pacman/local/iana-etc-20210903-1/mtree./var/lib/pacman/local/iana-etc-20210903-1/desc./var/lib/pacman/local/iana-etc-20210903-1/files./var/lib/pacman/local/filesystem-2021.05.31-1/mtree./var/lib/pacman/local/filesystem-2021.05.31-1/desc./var/lib/pacman/local/filesystem-2021.05.31-1/files./var/lib/pacman/sync/core.db./var/lib/pacman/sync/extra.db./var/lib/pacman/sync/community.db./var/log/pacman.log./var/lock./var/mail./var/run./dev/stderr./dev/stdout./dev/stdin./dev/fd./dev/core./dev/tty./dev/urandom./dev/random./dev/full./dev/zero./dev/null./dev/log./dev/shm/PostgreSQL.3801937632./dev/shm/PostgreSQL.1946725422./dev/shm/PostgreSQL.1486049726./dev/char/5:0./dev/char/1:9./dev/char/1:8./dev/char/1:7./dev/char/1:5./dev/char/1:3./dev/char/5:2./dev/ptmx./dev/pts/0./dev/pts/ptmx./run/systemd/notify Fatal error: Uncaught UnexpectedValueException: RecursiveDirectoryIterator::__construct(./run/systemd/incoming): failed to open dir: Permission denied in /in/p6UfZ:13 Stack trace: #0 [internal function]: RecursiveDirectoryIterator->__construct('./run/systemd/i...', 4096) #1 /in/p6UfZ(13): RecursiveDirectoryIterator->getChildren() #2 {main} thrown in /in/p6UfZ on line 13
Process exited with code 255.
Output for 7.4.32
Warning: mkdir(): File exists in /in/p6UfZ on line 4 ./folder/moarcode.php./folder/evenmoar.php./file1.php./rambo.tmp./.anyhidden./1234rInwsC./9.txt./8.txt./7.txt./6.txt./5.txt./4.txt./3.txt./2.txt./1.txt./0.txt./file.csv
Output for 7.4.30
Warning: mkdir(): File exists in /in/p6UfZ on line 4 ./folder/moarcode.php./folder/evenmoar.php./file1.php./1234BXOb2e./1234pEdTth./9.txt./8.txt./7.txt./6.txt./5.txt./4.txt./3.txt./2.txt./1.txt./0.txt./file.csv
Output for 7.4.29
Warning: mkdir(): File exists in /in/p6UfZ on line 4 Warning: mkdir(): File exists in /in/p6UfZ on line 6 ./1234dZ97go./9.txt./8.txt./7.txt./6.txt./5.txt./4.txt./3.txt./2.txt./1.txt./0.txt./file.csv./rambo.tmp./.anyhidden./example.txt./folder/moarcode.php./folder/evenmoar.php./file1.php
Output for 7.4.28
Warning: mkdir(): File exists in /in/p6UfZ on line 4 Warning: mkdir(): File exists in /in/p6UfZ on line 6 ./1234Lrlrj1./1234tN9aGb./9.txt./8.txt./7.txt./6.txt./5.txt./4.txt./3.txt./2.txt./1.txt./0.txt./file.csv./rambo.tmp./.anyhidden./example.txt./folder/moarcode.php./folder/evenmoar.php./file1.php
Output for 7.4.26
Warning: mkdir(): File exists in /in/p6UfZ on line 4 ./folder/moarcode.php./folder/evenmoar.php./file1.php./1234lGNpYj./9.txt./8.txt./7.txt./6.txt./5.txt./4.txt./3.txt./2.txt./1.txt./0.txt./file.csv
Output for 5.3.5 - 5.3.6, 5.3.25, 5.3.27, 5.3.29, 5.4.1, 5.4.5, 5.4.12, 5.4.19, 5.4.28, 5.4.33, 5.4.35, 5.4.41, 5.4.45, 5.5.11, 5.5.21, 5.5.27, 5.5.34, 5.6.1, 5.6.4 - 5.6.5, 5.6.13, 5.6.20, 5.6.25, 5.6.33, 5.6.36, 7.0.8, 7.0.11 - 7.0.12, 7.0.18, 7.0.20 - 7.0.23, 7.1.0, 7.1.4, 7.1.7 - 7.1.8, 7.1.19, 7.1.25, 7.2.1, 7.2.3 - 7.2.4, 7.2.13, 7.2.15, 7.2.18, 7.2.22, 7.2.25, 7.3.1 - 7.3.2, 7.3.4, 7.3.7, 7.3.12 - 7.3.13, 7.4.1
Warning: mkdir(): File exists in /in/p6UfZ on line 4 Warning: mkdir(): File exists in /in/p6UfZ on line 6 ./folder/moarcode.php./folder/evenmoar.php./file1.php
Output for 7.3.33
Warning: mkdir(): File exists in /in/p6UfZ on line 4 Warning: touch(): Unable to create file /tmp/test/file1.php because Not a directory in /in/p6UfZ on line 5 Warning: mkdir(): Not a directory in /in/p6UfZ on line 6 Warning: touch(): Unable to create file /tmp/test/folder/evenmoar.php because Not a directory in /in/p6UfZ on line 7 Warning: touch(): Unable to create file /tmp/test/folder/moarcode.php because Not a directory in /in/p6UfZ on line 8 Warning: chdir(): Not a directory (errno 20) in /in/p6UfZ on line 10 ./var/lib/pacman/local/ALPM_DB_VERSION./var/lib/pacman/local/iana-etc-20210903-1/mtree./var/lib/pacman/local/iana-etc-20210903-1/desc./var/lib/pacman/local/iana-etc-20210903-1/files./var/lib/pacman/local/filesystem-2021.05.31-1/mtree./var/lib/pacman/local/filesystem-2021.05.31-1/desc./var/lib/pacman/local/filesystem-2021.05.31-1/files./var/lib/pacman/sync/core.db./var/lib/pacman/sync/extra.db./var/lib/pacman/sync/community.db./var/log/pacman.log./var/lock./var/mail./var/run./dev/stderr./dev/stdout./dev/stdin./dev/fd./dev/core./dev/tty./dev/urandom./dev/random./dev/full./dev/zero./dev/null./dev/log./dev/shm/PostgreSQL.768971637./dev/shm/PostgreSQL.280855028./dev/shm/PostgreSQL.1703417217./dev/char/5:0./dev/char/1:9./dev/char/1:8./dev/char/1:7./dev/char/1:5./dev/char/1:3./dev/char/5:2./dev/ptmx./dev/pts/0./dev/pts/ptmx Fatal error: Uncaught UnexpectedValueException: RecursiveDirectoryIterator::__construct(./run/systemd/incoming): failed to open dir: Permission denied in /in/p6UfZ:13 Stack trace: #0 [internal function]: RecursiveDirectoryIterator->__construct('./run/systemd/i...', 4096) #1 /in/p6UfZ(13): RecursiveDirectoryIterator->getChildren() #2 {main} thrown in /in/p6UfZ on line 13
Process exited with code 255.
Output for 7.3.32
Warning: mkdir(): File exists in /in/p6UfZ on line 4 Warning: touch(): Unable to create file /tmp/test/file1.php because Not a directory in /in/p6UfZ on line 5 Warning: mkdir(): Not a directory in /in/p6UfZ on line 6 Warning: touch(): Unable to create file /tmp/test/folder/evenmoar.php because Not a directory in /in/p6UfZ on line 7 Warning: touch(): Unable to create file /tmp/test/folder/moarcode.php because Not a directory in /in/p6UfZ on line 8 Warning: chdir(): Not a directory (errno 20) in /in/p6UfZ on line 10 ./var/lib/pacman/local/ALPM_DB_VERSION./var/lib/pacman/local/iana-etc-20210903-1/mtree./var/lib/pacman/local/iana-etc-20210903-1/desc./var/lib/pacman/local/iana-etc-20210903-1/files./var/lib/pacman/local/filesystem-2021.05.31-1/mtree./var/lib/pacman/local/filesystem-2021.05.31-1/desc./var/lib/pacman/local/filesystem-2021.05.31-1/files./var/lib/pacman/sync/core.db./var/lib/pacman/sync/extra.db./var/lib/pacman/sync/community.db./var/log/pacman.log./var/lock./var/mail./var/run./dev/stderr./dev/stdout./dev/stdin./dev/fd./dev/core./dev/tty./dev/urandom./dev/random./dev/full./dev/zero./dev/null./dev/log./dev/shm/PostgreSQL.1599529683./dev/shm/PostgreSQL.879208985./dev/shm/PostgreSQL.1604936931./dev/char/5:0./dev/char/1:9./dev/char/1:8./dev/char/1:7./dev/char/1:5./dev/char/1:3./dev/char/5:2./dev/ptmx./dev/pts/0./dev/pts/ptmx Fatal error: Uncaught UnexpectedValueException: RecursiveDirectoryIterator::__construct(./run/systemd/incoming): failed to open dir: Permission denied in /in/p6UfZ:13 Stack trace: #0 [internal function]: RecursiveDirectoryIterator->__construct('./run/systemd/i...', 4096) #1 /in/p6UfZ(13): RecursiveDirectoryIterator->getChildren() #2 {main} thrown in /in/p6UfZ on line 13
Process exited with code 255.
Output for 7.3.0
Warning: mkdir(): File exists in /in/p6UfZ on line 4 Warning: touch(): Unable to create file /tmp/test/file1.php because No such file or directory in /in/p6UfZ on line 5 ./folder/moarcode.phpphp-7.3.0: /root/root/php-7.3.0/Zend/zend_virtual_cwd.c:762: tsrm_realpath_r: Assertion `i < MAXPATHLEN' failed.
Process exited with code 134.
Output for 7.2.14
Warning: mkdir(): File exists in /in/p6UfZ on line 4 Warning: mkdir(): File exists in /in/p6UfZ on line 6 ./folder/moarcode.php Warning: RecursiveDirectoryIterator::hasChildren(): open_basedir restriction in effect. File(./folder/evenmoar.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/p6UfZ on line 13 ./folder/evenmoar.php Warning: RecursiveDirectoryIterator::hasChildren(): open_basedir restriction in effect. File(./file1.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/p6UfZ on line 13 Warning: RecursiveDirectoryIterator::hasChildren(): open_basedir restriction in effect. File(./file1.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/p6UfZ on line 13 ./file1.php
Output for 7.1.32
Warning: mkdir(): File exists in /in/p6UfZ on line 4 ./file1.php./folder/moarcode.php./folder/evenmoar.php
Output for 5.6.3, 5.6.9, 7.1.28
Warning: mkdir(): File exists in /in/p6UfZ on line 4 Warning: mkdir(): File exists in /in/p6UfZ on line 6
Output for 5.6.29 - 5.6.30, 5.6.38, 7.1.1
Warning: mkdir(): File exists in /in/p6UfZ on line 4 Warning: mkdir(): File exists in /in/p6UfZ on line 6 ./file1.php./folder/moarcode.php./folder/evenmoar.php
Output for 5.4.20, 5.4.43, 7.0.32
Warning: mkdir(): File exists in /in/p6UfZ on line 4 Warning: touch(): Unable to create file /tmp/test/file1.php because No such file or directory in /in/p6UfZ on line 5 ./folder/moarcode.php./folder/evenmoar.php
Output for 7.0.15
Warning: mkdir(): File exists in /in/p6UfZ on line 4 Warning: touch(): Unable to create file /tmp/test/file1.php because No such file or directory in /in/p6UfZ on line 5 ./file1.php./folder/moarcode.php./folder/evenmoar.php
Output for 5.5.22, 5.6.19
Warning: mkdir(): File exists in /in/p6UfZ on line 4 Warning: mkdir(): File exists in /in/p6UfZ on line 6 ./folder Warning: RecursiveDirectoryIterator::hasChildren(): open_basedir restriction in effect. File(./file1.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/p6UfZ on line 13 Warning: RecursiveDirectoryIterator::hasChildren(): open_basedir restriction in effect. File(./file1.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/p6UfZ on line 13 ./file1.php
Output for 5.6.16
Warning: mkdir(): File exists in /in/p6UfZ on line 4 Warning: mkdir(): File exists in /in/p6UfZ on line 6 Warning: touch(): Unable to create file /tmp/test/folder/moarcode.php because No such file or directory in /in/p6UfZ on line 8 Warning: chdir(): No such file or directory (errno 2) in /in/p6UfZ on line 10 Fatal error: Uncaught exception 'UnexpectedValueException' with message 'RecursiveDirectoryIterator::__construct(): open_basedir restriction in effect. File(.) is not within the allowed path(s): (/tmp:/in:/etc)' in /in/p6UfZ:11 Stack trace: #0 /in/p6UfZ(11): RecursiveDirectoryIterator->__construct('.', 4096) #1 {main} thrown in /in/p6UfZ on line 11
Process exited with code 255.
Output for 5.4.16 - 5.4.17, 5.4.23, 5.5.29
Warning: touch(): Unable to create file /tmp/test/file1.php because No such file or directory in /in/p6UfZ on line 5 ./folder/moarcode.php./folder/evenmoar.php
Output for 5.5.9
Warning: mkdir(): File exists in /in/p6UfZ on line 4 Warning: mkdir(): File exists in /in/p6UfZ on line 6 Warning: RecursiveDirectoryIterator::hasChildren(): open_basedir restriction in effect. File(./file1.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/p6UfZ on line 13 Warning: RecursiveDirectoryIterator::hasChildren(): open_basedir restriction in effect. File(./file1.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/p6UfZ on line 13 ./file1.php
Output for 5.3.9
Warning: mkdir(): File exists in /in/p6UfZ on line 4 Warning: mkdir(): File exists in /in/p6UfZ on line 6 ./file1.php
Output for 5.2.1 - 5.2.17
Fatal error: Class 'FilesystemIterator' not found in /in/p6UfZ on line 11
Process exited with code 255.
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0
Fatal error: Call to undefined function sys_get_temp_dir() in /in/p6UfZ on line 3
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected ')', expecting '(' in /in/p6UfZ on line 11
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1
Parse error: parse error, unexpected ')', expecting '(' in /in/p6UfZ on line 11
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `'('' in /in/p6UfZ on line 11
Process exited with code 255.

preferences:
254.52 ms | 401 KiB | 456 Q