3v4l.org

run code in 300+ PHP versions simultaneously
<?php function Translate($word, $conversion = 'es_to_fr') { $word = urlencode($word); $arr_langs = explode(‘_to_’, $conversion); //$url = "http://translate.google.com/translate_a/t?client=t&text=$word&hl=".$arr_langs[1]."&sl=".$arr_langs[0]."&tl=".$arr_langs[1]."&ie=UTF-8&oe=UTF-8&multires=1&otf=1&pc=1&trs=1&ssel=3&tsel=6&sc=1″; $url = "https://translate.google.es/translate_a/t?client=t&sl=es&tl=fr&hl=es&sc=2&ie=UTF-8&oe=UTF-8&oc=1&otf=2&ssel=0&tsel=0&q=as%20de%20(assd)%20kjs″; $name_fr = curl($url); $name_fr = explode('"',$name_fr); return $name_fr[1]; } echo Translate("fiordo");
Output for 5.4.0 - 5.4.34
Parse error: syntax error, unexpected '',$name_fr);' (T_ENCAPSED_AND_WHITESPACE) in /in/7gcO8 on line 10
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE in /in/7gcO8 on line 10
Process exited with code 255.

preferences:
177.65 ms | 1394 KiB | 71 Q