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); echo $name_fr[1]; return $name_fr[1]; } Translate('fiordo');
Output for 5.4.0 - 5.4.28
Parse error: syntax error, unexpected '',$name_fr);' (T_CONSTANT_ENCAPSED_STRING) in /in/YV8BM on line 15
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /in/YV8BM on line 15
Process exited with code 255.

preferences:
191.42 ms | 1395 KiB | 65 Q