3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $ip = "s4.myradiostream.com"; $port = "13402"; $fp = @fsockopen($ip,$port,$errno,$errstr,1); if (!$fp) { $listeners = "0;"; } else { fputs($fp, "GET /7.html HTTP/1.0\r\nUser-Agent: Mozilla\r\n\r\n"); while (!feof($fp)) { $info = fgets($fp); } $split = explode(',', $info); if ($split[1] == "0") { $listeners = "0"; } else { $listeners = $split[0]; } } print $listeners; ?>
Output for 4.3.2 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
0;
Output for 4.3.0 - 4.3.1

Process exited with code 139.