3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $url = 'http//www.google.com/'; $cmd = "top"; exec($cmd, $status); echo $status[0]; ?>
Output for 5.5.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined offset: 0 in /in/WmOjY on line 5
Output for hhvm-3.10.0 - 3.12.0
Failed to exec: `top'
Output for 4.3.0 - 5.4.45