3v4l.org

run code in 300+ PHP versions simultaneously
<?php // appends the text to the end of the end of the file file_put_contents($file, $text, FILE_APPEND); // appends the text to the end of the end of the file $fp = fwrite($file, 'a'); fwrite($fp, $text);
Output for git.master_jit, git.master
Warning: Undefined variable $file in /in/Da3Op on line 4 Warning: Undefined variable $text in /in/Da3Op on line 4 Deprecated: file_put_contents(): Passing null to parameter #1 ($filename) of type string is deprecated in /in/Da3Op on line 4 Fatal error: Uncaught ValueError: Path must not be empty in /in/Da3Op:4 Stack trace: #0 /in/Da3Op(4): file_put_contents('', NULL, 8) #1 {main} thrown in /in/Da3Op on line 4
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:
31.32 ms | 406 KiB | 5 Q