3v4l.org

run code in 300+ PHP versions simultaneously
<?php print 'test'; print readfile('/proc/misc'); print 'test2';
Output for 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.7
test Warning: readfile(): open_basedir restriction in effect. File(/proc/misc) is not within the allowed path(s): (/tmp:/in:/etc) in /in/S3msB on line 4 Warning: readfile(/proc/misc): Failed to open stream: Operation not permitted in /in/S3msB on line 4 test2
Output for 8.0.13
test Warning: readfile(/proc/misc): Failed to open stream: No such file or directory in /in/S3msB on line 4 test2
Output for 7.3.32 - 7.3.33, 7.4.33
test Warning: readfile(/proc/misc): failed to open stream: No such file or directory in /in/S3msB on line 4 test2
Output for 7.1.26 - 7.1.33, 7.2.17 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.32
test Warning: readfile(): open_basedir restriction in effect. File(/proc/misc) is not within the allowed path(s): (/tmp:/in:/etc) in /in/S3msB on line 4 Warning: readfile(/proc/misc): failed to open stream: Operation not permitted in /in/S3msB on line 4 test2
Output for 7.1.20, 7.2.6
test Warning: readfile(): open_basedir restriction in effect. File(/proc/misc) is not within the allowed path(s): (/tmp:/in) in /in/S3msB on line 4 Warning: readfile(/proc/misc): failed to open stream: Operation not permitted in /in/S3msB on line 4 test2
Output for 7.2.0
test 57 zfs 58 rfkill 232 kvm 234 btrfs-control 59 memory_bandwidth 60 network_throughput 61 network_latency 62 cpu_dma_latency 184 microcode 228 hpet 235 autofs 231 snapshot 63 vga_arbiter 192test2
Output for 7.1.10
test 58 rfkill 232 kvm 234 btrfs-control 59 memory_bandwidth 60 network_throughput 61 network_latency 62 cpu_dma_latency 184 microcode 228 hpet 235 autofs 231 snapshot 63 vga_arbiter 184test2
Output for 5.5.25 - 5.5.34, 5.6.8 - 5.6.21, 7.0.0 - 7.0.5, 7.0.20, 7.1.5 - 7.1.7
test 58 rfkill 234 btrfs-control 59 memory_bandwidth 60 network_throughput 61 network_latency 62 cpu_dma_latency 184 microcode 227 mcelog 228 hpet 235 autofs 231 snapshot 63 vga_arbiter 187test2
Output for 5.6.28, 7.1.0
test232 kvm 130 watchdog 1 psaux 234 btrfs-control 59 memory_bandwidth 60 network_throughput 61 network_latency 62 cpu_dma_latency 184 microcode 227 mcelog 228 hpet 235 autofs 231 snapshot 63 vga_arbiter 207test2
Output for 5.5.24, 5.5.35, 7.0.6
test 58 rfkill 232 kvm 234 btrfs-control 59 memory_bandwidth 60 network_throughput 61 network_latency 62 cpu_dma_latency 184 microcode 227 mcelog 228 hpet 235 autofs 231 snapshot 63 vga_arbiter 195test2

preferences:
161.66 ms | 402 KiB | 214 Q