3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php file_put_contents("#!/bin/sh\necho im a good guy.", '/tmp/hello'); echo `echo /tmp/*`; echo `chmod +x /tmp/hello`; echo `/tmp/hello`;
Output for 5.4.45 - 5.6.28, 7.0.0 - 7.1.0
Warning: file_put_contents(#!/bin/sh echo im a good guy.): failed to open stream: No such file or directory in /in/vKFCJ on line 2
Output for hhvm-3.10.0 - 3.12.0
Warning: No such file or directory in /in/vKFCJ on line 2 Failed to exec: `echo /tmp/*' Failed to exec: `chmod +x /tmp/hello' Failed to exec: `/tmp/hello'
Output for 5.3.29, 5.4.25 - 5.4.35, 5.4.37 - 5.4.44
Warning: file_put_contents(#!/bin/sh echo im a good guy.): failed to open stream: No such file or directory in /in/vKFCJ on line 2 /tmp/* sh: 1: chmod: not found sh: 1: /tmp/hello: not found
Output for 5.4.36
Warning: file_put_contents(#!/bin/sh echo im a good guy.): failed to open stream: No such file or directory in /in/vKFCJ on line 2 /tmp/hhbc.sq3 /tmp/hhbc.sq3-journal /tmp/perf-11124.map sh: 1: chmod: not found sh: 1: /tmp/hello: not found
Output for 5.0.0 - 5.3.28, 5.4.0 - 5.4.24
Warning: file_put_contents(#!/bin/sh echo im a good guy.): failed to open stream: No such file or directory in /in/vKFCJ on line 2 /tmp/test2 sh: 1: chmod: not found sh: 1: /tmp/hello: not found
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: file_put_contents() in /in/vKFCJ on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: file_put_contents() in /in/vKFCJ on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: file_put_contents() in /in/vKFCJ on line 2