3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $q = exec('ls -la'); var_dump($q);
Output for 5.6.28, 7.0.14 - 7.1.0
string(0) ""
Output for 4.3.2 - 5.6.25, 7.0.0 - 7.0.10
Warning: exec(): Unable to fork [ls -la] in /in/I11Qk on line 3 NULL
Output for hhvm-3.10.0 - 3.12.0
NULL
Output for 4.3.0 - 4.3.1
Warning: exec() [http://www.php.net/function.exec]: Unable to fork [ls -la] in /in/I11Qk on line 3 NULL