3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function Translate($word, $conversion = 'es_to_fr') { $word = urlencode($word); $arr_langs = explode('_to_', $conversion); $url = sprintf('http://translate.google.com/translate_a/t?client=t&text=%s&hl=%s&sl=s&tl=%s&ie=UTF-8&oe=UTF-8&multires=1&otf=1&pc=1&trs=1&ssel=3&tsel=6&sc=1', $word, $arr_langs[1], $arr_langs[0], $arr_langs[1]); $name_fr = curl($url); $name_fr = explode('"', $name_fr); return $name_fr[1]; } echo Translate("fiordo");
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function curl() in /in/DXivm:9 Stack trace: #0 /in/DXivm(16): Translate('fiordo') #1 {main} thrown in /in/DXivm on line 9
Process exited with code 255.
Output for 5.0.0 - 5.6.28, hhvm-3.12.0
Fatal error: Call to undefined function curl() in /in/DXivm on line 9
Process exited with code 255.
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: curl() in /in/DXivm on line 9
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: curl() in /in/DXivm on line 9
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: curl() in /in/DXivm on line 9