3v4l.org

run code in 300+ PHP versions simultaneously
<?php // CONFIGURATION $ip = 'radios.cabreuvoip.com.br'; // IP $port = '8040'; // Port $sid = '1'; // StreamID // PHP $shoutcast = simplexml_load_file("http://".$ip.":".$port."/stats"); $listeners = $shoutcast->CURRENTLISTENERS; $song = $shoutcast->SONGTITLE; $dj = $shoutcast->SERVERTITLE; // EXAMPLES //echo $listeners; // Listeners $Color = "white"; echo '<div style="Color:'.$Color.'" align = "center">'.$song.'</div>'; //song //echo $dj; // DJ ?>
Output for git.master, git.master_jit
Warning: simplexml_load_file(): php_network_getaddresses: getaddrinfo for radios.cabreuvoip.com.br failed: System error in /in/Ko0Mi on line 8 Warning: simplexml_load_file(http://radios.cabreuvoip.com.br:8040/stats): Failed to open stream: php_network_getaddresses: getaddrinfo for radios.cabreuvoip.com.br failed: System error in /in/Ko0Mi on line 8 Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://radios.cabreuvoip.com.br:8040/stats" in /in/Ko0Mi on line 8 Warning: Attempt to read property "CURRENTLISTENERS" on bool in /in/Ko0Mi on line 9 Warning: Attempt to read property "SONGTITLE" on bool in /in/Ko0Mi on line 10 Warning: Attempt to read property "SERVERTITLE" on bool in /in/Ko0Mi on line 11 <div style="Color:white" align = "center"></div>
Output for rfc.property-hooks
Warning: simplexml_load_file(): php_network_getaddresses: getaddrinfo for radios.cabreuvoip.com.br failed: System error in /in/Ko0Mi on line 8 Warning: simplexml_load_file(http://radios.cabreuvoip.com.br:8040/stats): Failed to open stream: php_network_getaddresses: getaddrinfo for radios.cabreuvoip.com.br failed: System error in /in/Ko0Mi on line 8 Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://radios.cabreuvoip.com.br:8040/stats" in /in/Ko0Mi on line 8 Warning: Attempt to read property "CURRENTLISTENERS" on false in /in/Ko0Mi on line 9 Warning: Attempt to read property "SONGTITLE" on false in /in/Ko0Mi on line 10 Warning: Attempt to read property "SERVERTITLE" on false in /in/Ko0Mi on line 11 <div style="Color:white" align = "center"></div>

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
51.19 ms | 2398 KiB | 4 Q