shell_execle yapabilirsin ama güvenliğe dikkat et.

<?php
$sonuc = shell_exec('stats');
echo $sonuc;
?>