3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file = __DIR__.'/file.txt'; file_put_contents($file, '<?php return 1;'); $var = include $file; file_put_contents($file, '<?php return 2;'); $var = include $file; var_dump($var);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: file_put_contents(/in/file.txt): Failed to open stream: Permission denied in /in/7GlU6 on line 3 Warning: include(/in/file.txt): Failed to open stream: No such file or directory in /in/7GlU6 on line 4 Warning: include(): Failed opening '/in/file.txt' for inclusion (include_path='.:') in /in/7GlU6 on line 4 Warning: file_put_contents(/in/file.txt): Failed to open stream: Permission denied in /in/7GlU6 on line 5 Warning: include(/in/file.txt): Failed to open stream: No such file or directory in /in/7GlU6 on line 6 Warning: include(): Failed opening '/in/file.txt' for inclusion (include_path='.:') in /in/7GlU6 on line 6 bool(false)

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:
37.85 ms | 402 KiB | 8 Q