3v4l.org

run code in 300+ PHP versions simultaneously
<?php $temp = new SplTempFileObject(); $temp->fwrite("Первая строка\n"); $temp->fwrite("А это - вторая.\n"); echo "Во временный файл записано " . $temp->ftell() . " байт.\n\n"; //mkdir('/tmp/test'); exec("echo 'ddd' > /tmp/test/ddd.txt"); foreach(new GlobIterator('/tmp/*', FilesystemIterator::SKIP_DOTS) as $file) { echo $file.PHP_EOL; //var_dump(file_get_contents($file)); }
Output for git.master_jit, git.master, rfc.property-hooks
Во временный файл записано 52 байт. Warning: exec(): Unable to fork [echo 'ddd' > /tmp/test/ddd.txt] in /in/S7Xr3 on line 7

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