3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $o = ''; exec('host example.com', $o); echo $o;
Output for 5.4.42 - 5.6.21, hhvm-3.12.0, 7.0.0 - 7.1.0
Notice: Array to string conversion in /in/Ar27t on line 6 Array
Output for hhvm-3.10.0
Notice: Array to string conversion in /in/Ar27t on line 8 Array
Output for 5.4.0 - 5.4.41
Notice: Array to string conversion in /in/Ar27t on line 6 Arraysh: 1: host: not found
Output for 4.3.1 - 5.3.29
Arraysh: 1: host: not found
Output for 4.3.0
Array