3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getClientIPInfo($ip) { $json_data = file_get_contents('http://ipinfo.io/'.$ip.'/json'); $data = json_decode($json_data, true); return $data; } var_dump(getClientIPInfo('11.22.33.44')); ?>

preferences:
37.93 ms | 402 KiB | 5 Q