3v4l.org

run code in 300+ PHP versions simultaneously
<?php include('php://filter/read=convert.base64-encode,resource=/etc/passwd');
Output for 7.4.3 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Fatal error: Uncaught Error: No URL resource specified in /in/DG24S:1 Stack trace: #0 {main} thrown in /in/DG24S on line 1
Process exited with code 255.
Output for 7.3.12 - 7.3.33, 7.4.0
Warning: main(): Failed opening 'php://filter/read=convert.base64-encode,resource=/etc/passwd' for inclusion (include_path='.:') in /in/DG24S on line 1 Fatal error: Uncaught Error: No URL resource specified in /in/DG24S:1 Stack trace: #0 {main} thrown in /in/DG24S on line 1
Process exited with code 255.
Output for 7.1.0 - 7.1.20, 7.2.0 - 7.2.33
Warning: main(php://filter/read=convert.base64-encode,resource=/etc/passwd): failed to open stream: operation failed in /in/DG24S on line 1 Warning: main(): Failed opening 'php://filter/read=convert.base64-encode,resource=/etc/passwd' for inclusion (include_path='.:') in /in/DG24S on line 1 Fatal error: Uncaught Error: No URL resource specified in /in/DG24S:1 Stack trace: #0 {main} thrown in /in/DG24S on line 1
Process exited with code 255.
Output for 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.30, 7.0.0 - 7.0.20
Catchable fatal error: include(): No URL resource specified in /in/DG24S on line 1
Process exited with code 255.

preferences:
246.03 ms | 402 KiB | 316 Q