3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php file_put_contents("php://filter/write=string.toupper/resource=/tmp/test/example.txt","Hello World"); 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 5.6.28, 7.0.14 - 7.1.0
Warning: file_put_contents(php://filter/write=string.toupper/resource=/tmp/test/example.txt): failed to open stream: operation failed in /in/7cgoD on line 2
Output for 5.3.0 - 5.6.25, 7.0.0 - 7.0.10
Warning: file_put_contents(php://filter/write=string.toupper/resource=/tmp/test/example.txt): failed to open stream: operation failed in /in/7cgoD on line 2 Warning: exec(): Unable to fork [echo 'ddd' > /tmp/test/ddd.txt] in /in/7cgoD on line 3
Output for hhvm-3.12.0
Warning: No such file or directory in /in/7cgoD on line 2 /tmp/perf-11856.map
Output for hhvm-3.10.0
Warning: No such file or directory in /in/7cgoD on line 2 /tmp/perf-11854.map