3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php    if(isset($_GET['address'])) {        $url = "http://maps.googleapis.com/maps/api/geocode/xml?address=".$_GET['address']."&sensor=true";        $xml = simplexml_load_file($url,NULL, LIBXML_NOCDATA);        if($xml->status == "ZERO_RESULTS") {            echo "Geen resultaten gevonden!";        } else {            echo "<pre>".print_r($xml->result->geometry->location,1)."</pre>";                     }    } else {        echo "Je vergeet een adres in de URL in te vullen. Klik eens bijvoorbeeld <a href='locationcheck.php?address=amsterdam,marnixlaan'>hier</a>.";    }            ?>
Output for 5.3.0 - 5.4.32
<?php    if(isset($_GET['address'])) {        $url = "http://maps.googleapis.com/maps/api/geocode/xml?address=".$_GET['address']."&sensor=true";        $xml = simplexml_load_file($url,NULL, LIBXML_NOCDATA);        if($xml->status == "ZERO_RESULTS") {            echo "Geen resultaten gevonden!";        } else {            echo "<pre>".print_r($xml->result->geometry->location,1)."</pre>";                     }    } else {        echo "Je vergeet een adres in de URL in te vullen. Klik eens bijvoorbeeld <a href='locationcheck.php?address=amsterdam,marnixlaan'>hier</a>.";    }            ?>