3v4l.org

run code in 200+ 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 - 7.1.7
Notice: Undefined variable: result in /in/8S569 on line 7
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: result in /in/8S569 on line 7