3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $return = 0x080200000143EF3A; file_put_contents("/tmp/toto", "test"); chmod("/tmp/toto", 0777); echo system("echo /tmp/*"); ?>
based on b6WSc
Output for 5.4.44 - 7.1.0
Output for 5.3.29, 5.4.32 - 5.4.35, 5.4.37 - 5.4.43
/tmp/toto /tmp/toto
Output for 5.4.36
/tmp/hhbc.sq3 /tmp/perf-23762.map /tmp/toto /tmp/hhbc.sq3 /tmp/perf-23762.map /tmp/toto
Output for 5.0.0 - 5.3.28, 5.4.0 - 5.4.31
/tmp/ha.2543 /tmp/hhbc.sq3 /tmp/perf-2548.map /tmp/perf-2564.map /tmp/perf-2567.map /tmp/perf-2570.map /tmp/perf-2573.map /tmp/toto /tmp/ha.2543 /tmp/hhbc.sq3 /tmp/perf-2548.map /tmp/perf-2564.map /tmp/perf-2567.map /tmp/perf-2570.map /tmp/perf-2573.map /tmp/toto
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: file_put_contents() in /in/kLYXk on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: file_put_contents() in /in/kLYXk on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: file_put_contents() in /in/kLYXk on line 3