3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo file_get_contents(popen('echo "hello";', 0));
based on SfJFN
Output for 5.2.9 - 5.6.28, 7.0.0 - 7.1.0
Warning: popen(echo "hello";,0): Invalid argument in /in/lvn8r on line 2 Warning: file_get_contents(): Filename cannot be empty in /in/lvn8r on line 2
Output for hhvm-3.10.0 - 3.12.0
Warning: popen(echo "hello";,0): Invalid argument in /in/lvn8r on line 2 Warning: Filename cannot be empty in /in/lvn8r on line 2
Output for 4.3.2 - 5.2.8
Warning: popen(echo "hello";,0): Invalid argument in /in/lvn8r on line 2
Output for 4.3.0 - 4.3.1
Warning: popen(echo "hello";,0) [http://www.php.net/function.popen]: Invalid argument in /in/lvn8r on line 2