3v4l.org

run code in 300+ PHP versions simultaneously
<?php $files = scandir('/proc/'); print_r($files); echo file_get_contents('/proc/uptime'); echo file_get_contents('/proc/partitions'); echo `/bin/ls`;
Output for git.master, git.master_jit, rfc.property-hooks
Warning: scandir(): open_basedir restriction in effect. File(/proc/) is not within the allowed path(s): (/tmp:/in:/etc) in /in/0gjIZ on line 2 Warning: scandir(/proc/): Failed to open directory: Operation not permitted in /in/0gjIZ on line 2 Warning: scandir(): (errno 1): Operation not permitted in /in/0gjIZ on line 2 Warning: file_get_contents(): open_basedir restriction in effect. File(/proc/uptime) is not within the allowed path(s): (/tmp:/in:/etc) in /in/0gjIZ on line 4 Warning: file_get_contents(/proc/uptime): Failed to open stream: Operation not permitted in /in/0gjIZ on line 4 Warning: file_get_contents(): open_basedir restriction in effect. File(/proc/partitions) is not within the allowed path(s): (/tmp:/in:/etc) in /in/0gjIZ on line 5 Warning: file_get_contents(/proc/partitions): Failed to open stream: Operation not permitted in /in/0gjIZ on line 5 Warning: shell_exec(): Unable to execute '/bin/ls' in /in/0gjIZ on line 6

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