3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo syscall("ls -lathr"); function syscall($command){ if ($proc = popen("($command)2>&1","r")){ while (!feof($proc)) $result .= fgets($proc, 1000); pclose($proc); return $result; } } ?>
Output for 5.0.4 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: result in /in/8S569 on line 7
Output for hhvm-3.10.0 - 3.12.0
Failed to exec: `(ls -lathr)2>&1'
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: result in /in/8S569 on line 7