3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php exec('sudo shutdown -r now');
Output for 5.6.28, 7.0.14 - 7.1.0
Output for 4.3.2 - 5.6.25, 7.0.0 - 7.0.10
Warning: exec(): Unable to fork [sudo shutdown -r now] in /in/OkMj4 on line 3
Output for 4.3.0 - 4.3.1
Warning: exec() [http://www.php.net/function.exec]: Unable to fork [sudo shutdown -r now] in /in/OkMj4 on line 3