3v4l.org

run code in 300+ PHP versions simultaneously
<?php function fdopen($id, $mode) { return fopen("/proc/self/fd/".(int)$id, $mode); } for ($i = 1; $i <= 10; $i++) { echo fdopen($i,'r'); echo $i; } echo fdopen(8,'r');
Output for git.master, rfc.property-hooks
Warning: fopen(): open_basedir restriction in effect. File(/proc/self/fd/1) is not within the allowed path(s): (/tmp:/in:/etc) in /in/AmBiT on line 4 Warning: fopen(/proc/self/fd/1): Failed to open stream: Operation not permitted in /in/AmBiT on line 4 1 Warning: fopen(): open_basedir restriction in effect. File(/proc/self/fd/2) is not within the allowed path(s): (/tmp:/in:/etc) in /in/AmBiT on line 4 Warning: fopen(/proc/self/fd/2): Failed to open stream: Operation not permitted in /in/AmBiT on line 4 2Resource id #53 Warning: fopen(): open_basedir restriction in effect. File(/proc/self/fd/4) is not within the allowed path(s): (/tmp:/in:/etc) in /in/AmBiT on line 4 Warning: fopen(/proc/self/fd/4): Failed to open stream: Operation not permitted in /in/AmBiT on line 4 4 Warning: fopen(): open_basedir restriction in effect. File(/proc/self/fd/5) is not within the allowed path(s): (/tmp:/in:/etc) in /in/AmBiT on line 4 Warning: fopen(/proc/self/fd/5): Failed to open stream: Operation not permitted in /in/AmBiT on line 4 5 Warning: fopen(): open_basedir restriction in effect. File(/proc/self/fd/6) is not within the allowed path(s): (/tmp:/in:/etc) in /in/AmBiT on line 4 Warning: fopen(/proc/self/fd/6): Failed to open stream: Operation not permitted in /in/AmBiT on line 4 6 Warning: fopen(): open_basedir restriction in effect. File(/proc/self/fd/7) is not within the allowed path(s): (/tmp:/in:/etc) in /in/AmBiT on line 4 Warning: fopen(/proc/self/fd/7): Failed to open stream: Operation not permitted in /in/AmBiT on line 4 7 Warning: fopen(): open_basedir restriction in effect. File(/proc/self/fd/8) is not within the allowed path(s): (/tmp:/in:/etc) in /in/AmBiT on line 4 Warning: fopen(/proc/self/fd/8): Failed to open stream: Operation not permitted in /in/AmBiT on line 4 8 Warning: fopen(): open_basedir restriction in effect. File(/proc/self/fd/9) is not within the allowed path(s): (/tmp:/in:/etc) in /in/AmBiT on line 4 Warning: fopen(/proc/self/fd/9): Failed to open stream: Operation not permitted in /in/AmBiT on line 4 9 Warning: fopen(): open_basedir restriction in effect. File(/proc/self/fd/10) is not within the allowed path(s): (/tmp:/in:/etc) in /in/AmBiT on line 4 Warning: fopen(/proc/self/fd/10): Failed to open stream: Operation not permitted in /in/AmBiT on line 4 10 Warning: fopen(): open_basedir restriction in effect. File(/proc/self/fd/8) is not within the allowed path(s): (/tmp:/in:/etc) in /in/AmBiT on line 4 Warning: fopen(/proc/self/fd/8): Failed to open stream: Operation not permitted in /in/AmBiT on line 4
Output for git.master_jit
Warning: fopen(): open_basedir restriction in effect. File(/proc/self/fd/1) is not within the allowed path(s): (/tmp:/in:/etc) in /in/AmBiT on line 4 Warning: fopen(/proc/self/fd/1): Failed to open stream: Operation not permitted in /in/AmBiT on line 4 1 Warning: fopen(): open_basedir restriction in effect. File(/proc/self/fd/2) is not within the allowed path(s): (/tmp:/in:/etc) in /in/AmBiT on line 4 Warning: fopen(/proc/self/fd/2): Failed to open stream: Operation not permitted in /in/AmBiT on line 4 2 Warning: fopen(/proc/self/fd/3): Failed to open stream: No such file or directory in /in/AmBiT on line 4 3Resource id #54 Warning: fopen(): open_basedir restriction in effect. File(/proc/self/fd/5) is not within the allowed path(s): (/tmp:/in:/etc) in /in/AmBiT on line 4 Warning: fopen(/proc/self/fd/5): Failed to open stream: Operation not permitted in /in/AmBiT on line 4 5 Warning: fopen(): open_basedir restriction in effect. File(/proc/self/fd/6) is not within the allowed path(s): (/tmp:/in:/etc) in /in/AmBiT on line 4 Warning: fopen(/proc/self/fd/6): Failed to open stream: Operation not permitted in /in/AmBiT on line 4 6 Warning: fopen(): open_basedir restriction in effect. File(/proc/self/fd/7) is not within the allowed path(s): (/tmp:/in:/etc) in /in/AmBiT on line 4 Warning: fopen(/proc/self/fd/7): Failed to open stream: Operation not permitted in /in/AmBiT on line 4 7 Warning: fopen(): open_basedir restriction in effect. File(/proc/self/fd/8) is not within the allowed path(s): (/tmp:/in:/etc) in /in/AmBiT on line 4 Warning: fopen(/proc/self/fd/8): Failed to open stream: Operation not permitted in /in/AmBiT on line 4 8 Warning: fopen(): open_basedir restriction in effect. File(/proc/self/fd/9) is not within the allowed path(s): (/tmp:/in:/etc) in /in/AmBiT on line 4 Warning: fopen(/proc/self/fd/9): Failed to open stream: Operation not permitted in /in/AmBiT on line 4 9 Warning: fopen(): open_basedir restriction in effect. File(/proc/self/fd/10) is not within the allowed path(s): (/tmp:/in:/etc) in /in/AmBiT on line 4 Warning: fopen(/proc/self/fd/10): Failed to open stream: Operation not permitted in /in/AmBiT on line 4 10 Warning: fopen(): open_basedir restriction in effect. File(/proc/self/fd/8) is not within the allowed path(s): (/tmp:/in:/etc) in /in/AmBiT on line 4 Warning: fopen(/proc/self/fd/8): Failed to open stream: Operation not permitted in /in/AmBiT on line 4

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:
44.89 ms | 409 KiB | 8 Q