3v4l.org

run code in 300+ PHP versions simultaneously
<?php$host= 'www.google.c0m'; $cmd = "ping $host"; $output = shell_exec($cmd); $error= "no pudo"; if (stristr($output,$error)){ echo '<font color=red><h1>El host ' . $host .' NO responde a ping </h1></font>'; } else { echo '<font color=green><h1>El host ' . $host .' SI responde a ping </h1></font>'; } ?>

This is an error 404

There are `0` results


preferences:
143.11 ms | 1398 KiB | 7 Q