3v4l.org

run code in 300+ PHP versions simultaneously
<?php $Server_IP = $_SERVER['SERVER_ADDR']; $geo = unserialize(file_get_contents("http://www.geoplugin.net/php.gp?ip=$Server_IP")); $city = $geo["geoplugin_city"]; echo "City: ".$city."<br>";
Output for git.master, git.master_jit
Warning: Undefined array key "SERVER_ADDR" in /in/lVhdo on line 2 Warning: file_get_contents(): php_network_getaddresses: getaddrinfo for www.geoplugin.net failed: System error in /in/lVhdo on line 3 Warning: file_get_contents(http://www.geoplugin.net/php.gp?ip=): Failed to open stream: php_network_getaddresses: getaddrinfo for www.geoplugin.net failed: System error in /in/lVhdo on line 3 Warning: Trying to access array offset on value of type bool in /in/lVhdo on line 4 City: <br>
Output for rfc.property-hooks
Warning: Undefined array key "SERVER_ADDR" in /in/lVhdo on line 2 Warning: file_get_contents(): php_network_getaddresses: getaddrinfo for www.geoplugin.net failed: System error in /in/lVhdo on line 3 Warning: file_get_contents(http://www.geoplugin.net/php.gp?ip=): Failed to open stream: php_network_getaddresses: getaddrinfo for www.geoplugin.net failed: System error in /in/lVhdo on line 3 Warning: Trying to access array offset on false in /in/lVhdo on line 4 City: <br>

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