3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php unction ConverCurrency(){ $google_url = "http://rate-exchange.appspot.com/currency?from=USD&to=PKR"; $result = file_get_contents($google_url); return $result; } echo $converted_value = ConverCurrency(); //output {"to": "PKR", "rate": 104.328, "from": "USD"} ?>
Output for 5.4.0 - 5.4.25
Parse error: syntax error, unexpected 'ConverCurrency' (T_STRING) in /in/BeTEo on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING in /in/BeTEo on line 3
Process exited with code 255.