3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo file_get_contents(popen('/bin/bash -c echo "hello";', 'r'));
based on igBmC
Output for 5.4.39 - 7.1.0
Warning: file_get_contents() expects parameter 1 to be a valid path, resource given in /in/V4kcB on line 2
Output for 5.4.0 - 5.4.38
Warning: file_get_contents() expects parameter 1 to be a valid path, resource given in /in/V4kcB on line 2 sh: 1: /bin/bash: not found
Output for 4.3.1 - 5.3.29
Warning: file_get_contents() expects parameter 1 to be string, resource given in /in/V4kcB on line 2 sh: 1: /bin/bash: not found
Output for 4.3.0
Warning: file_get_contents() expects parameter 1 to be string, resource given in /in/V4kcB on line 2