3v4l.org

run code in 300+ PHP versions simultaneously
<?php file_put_contents('test', 'Stuff');
Output for 8.1.28, 8.2.16 - 8.2.18, 8.3.3 - 8.3.6
Warning: file_put_contents(): open_basedir restriction in effect. File(test) is not within the allowed path(s): (/tmp:/in:/etc) in /in/qAPnv on line 2 Warning: file_put_contents(test): Failed to open stream: Operation not permitted in /in/qAPnv on line 2
Output for 5.5.0, 5.5.7, 5.5.9 - 5.5.17, 5.5.19, 5.5.21, 5.5.23 - 5.5.24, 5.5.26, 5.5.28 - 5.5.29, 5.5.31, 5.5.33 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.26, 7.3.0 - 7.3.13, 7.4.0 - 7.4.1
Warning: file_put_contents(): open_basedir restriction in effect. File(test) is not within the allowed path(s): (/tmp:/in:/etc) in /in/qAPnv on line 2 Warning: file_put_contents(test): failed to open stream: Operation not permitted in /in/qAPnv on line 2
Output for 5.5.1 - 5.5.6, 5.5.8, 5.5.18, 5.5.20, 5.5.22, 5.5.25, 5.5.27, 5.5.30, 5.5.32

Process exited with code 137.
Output for 5.2.3 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45
Warning: file_put_contents(test): failed to open stream: Permission denied in /in/qAPnv on line 2
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.2
Warning: file_put_contents(test): failed to open stream: Read-only file system in /in/qAPnv on line 2
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: file_put_contents() in /in/qAPnv on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
Fatal error: Call to undefined function: file_put_contents() in /in/qAPnv on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: file_put_contents() in /in/qAPnv on line 2

preferences:
263.68 ms | 401 KiB | 333 Q