3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = file_put_contents('/etc/foobar.txt', 'you got hacked'); echo $i; echo file_get_contents('/etc/foobar.txt'); #fecho file_get_contents('/etc/httpd/site #foreach(glob("/etc/arch-relea*") as $file) { # echo $file . "\n"; #}
Output for git.master, git.master_jit, rfc.property-hooks
Warning: file_put_contents(/etc/foobar.txt): Failed to open stream: Read-only file system in /in/6fmtT on line 3 Warning: file_get_contents(/etc/foobar.txt): Failed to open stream: No such file or directory in /in/6fmtT 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:
43.23 ms | 402 KiB | 8 Q