3v4l.org

run code in 300+ PHP versions simultaneously
<?php file_put_contents("#!/bin/sh\necho im a good guy.", '/tmp/hello'); echo `echo /tmp/*`; echo `chmod +x /tmp/hello`; echo `/tmp/hello`;
Output for git.master_jit, git.master, rfc.property-hooks
Warning: file_put_contents(): open_basedir restriction in effect. File(#!/bin/sh echo im a good guy.) is not within the allowed path(s): (/tmp:/in:/etc) in /in/vKFCJ on line 2 Warning: file_put_contents(#!/bin/sh echo im a good guy.): Failed to open stream: Operation not permitted in /in/vKFCJ on line 2 Warning: shell_exec(): Unable to execute 'echo /tmp/*' in /in/vKFCJ on line 3 Warning: shell_exec(): Unable to execute 'chmod +x /tmp/hello' in /in/vKFCJ on line 4 Warning: shell_exec(): Unable to execute '/tmp/hello' in /in/vKFCJ 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:
47.54 ms | 402 KiB | 8 Q