3v4l.org

run code in 300+ PHP versions simultaneously
<?php file_put_contents('/path/to/file.txt', [1,2,3]); print file_get_contents('/path/to/file.txt'); // print 123
Output for git.master_jit, git.master
Warning: file_put_contents(): open_basedir restriction in effect. File(/path/to/file.txt) is not within the allowed path(s): (/tmp:/in:/etc) in /in/sBflr on line 3 Warning: file_put_contents(/path/to/file.txt): Failed to open stream: Operation not permitted in /in/sBflr on line 3 Warning: file_get_contents(): open_basedir restriction in effect. File(/path/to/file.txt) is not within the allowed path(s): (/tmp:/in:/etc) in /in/sBflr on line 5 Warning: file_get_contents(/path/to/file.txt): Failed to open stream: Operation not permitted in /in/sBflr on line 5

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:
58.84 ms | 889 KiB | 4 Q