3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(exec('cd ../../ls'));
based on vFBoE
Output for 4.3.0, 5.4.43 - 5.6.28, 7.0.0 - 7.1.0
string(0) ""
Output for hhvm-3.10.0 - 3.12.0
string(29) "Failed to exec: `cd ../../ls'"
Output for 4.3.1 - 5.4.42
string(0) "" sh: 1: cd: can't cd to ../../ls