3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a=exec("ls",$b); var_dump($a); var_dump($b);
Output for 4.3.0, 5.4.44 - 5.6.28, 7.0.0 - 7.1.0
string(0) "" array(0) { }
Output for hhvm-3.10.0 - 3.12.0
string(20) "Failed to exec: `ls'" array(1) { [0]=> string(20) "Failed to exec: `ls'" }
Output for 4.3.1 - 5.4.43
string(0) "" array(0) { } sh: 1: ls: not found