3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ip = $_GET['ip']; $siteid = $_GET['siteid']; function check_vote($IP,$ID) { $fg = file_get_contents('http://www.topservers200.com/api/vote/?ip='.$IP); if(strstr($fg,'<status>0</status>') && strstr($fg,'<site_id>'.$ID.'</site_id>')) { return true; } } if(check_vote($ip, $siteid)) { echo "VOTO VALIDADO"; } else { echo "VOTO INVALIDO"; }
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key "ip" in /in/MtIUg on line 4 Warning: Undefined array key "siteid" in /in/MtIUg on line 5 Warning: file_get_contents(): php_network_getaddresses: getaddrinfo for www.topservers200.com failed: System error in /in/MtIUg on line 12 Warning: file_get_contents(http://www.topservers200.com/api/vote/?ip=): Failed to open stream: php_network_getaddresses: getaddrinfo for www.topservers200.com failed: System error in /in/MtIUg on line 12 VOTO INVALIDO

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:
69.82 ms | 402 KiB | 8 Q