ping -c 1 -w 200 192.168.1.1
PING 1 192.168.1.1 ( 192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=57 time=3.51 ms
--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 3ms
rtt min/avg/max/mdev = 3.517/3.517/3.517/0.000 ms
$output = shell_exec("ping $ip -n 1");
$output = shell_exec("ping -c 1 -w 200 $ip");