3v4l.org

run code in 300+ PHP versions simultaneously
<?php # Save the audio to a URL-accessible directory for playback. parse_str($_SERVER['QUERY_STRING'], $params); $str = 'randomtype'; $file_name = md5($str); $name = isset($params['fileName']) ? $params['fileName'] : $file_name + 'randomtype.mp3'; $content = file_get_contents('php://input'); $fh = fopen($name, 'w') or die("can't open file"); fwrite($fh, $content); fclose($fh); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key "QUERY_STRING" in /in/qGBRj on line 3 Deprecated: parse_str(): Passing null to parameter #1 ($string) of type string is deprecated in /in/qGBRj on line 3 Warning: A non-numeric value encountered in /in/qGBRj on line 6 Fatal error: Uncaught TypeError: Unsupported operand types: string + string in /in/qGBRj:6 Stack trace: #0 {main} thrown in /in/qGBRj on line 6
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:
42.3 ms | 401 KiB | 8 Q