3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<? ob_start(); passthru("dir"); $var = ob_get_contents(); ob_end_clean(); //Use this instead of ob_flush() ?>
based on 68TOi
Output for 5.4.42 - 7.2.0
Output for 5.4.0 - 5.4.41
sh: 1: dir: not found
Output for 4.3.0 - 5.3.29
<? ob_start(); passthru("dir"); $var = ob_get_contents(); ob_end_clean(); //Use this instead of ob_flush() ?>