3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('opcache.enable', true); $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: Zend OPcache can't be temporary enabled (it may be only disabled till the end of request) in /in/pjnin on line 3 Warning: file_put_contents(/in/file.txt): Failed to open stream: Permission denied in /in/pjnin on line 6 Warning: include(/in/file.txt): Failed to open stream: No such file or directory in /in/pjnin on line 7 Warning: include(): Failed opening '/in/file.txt' for inclusion (include_path='.:') in /in/pjnin on line 7 Warning: file_put_contents(/in/file.txt): Failed to open stream: Permission denied in /in/pjnin on line 8 Warning: include(/in/file.txt): Failed to open stream: No such file or directory in /in/pjnin on line 9 Warning: include(): Failed opening '/in/file.txt' for inclusion (include_path='.:') in /in/pjnin on line 9 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:
51.87 ms | 403 KiB | 8 Q