3v4l.org

run code in 300+ PHP versions simultaneously
<?php function Translate($word,$conversion = 'hi_to_en') { $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"; $name_en = curl($url); $name_en = explode('"',$name_en); return $name_en[1]; } echo Translate("Hello");
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function curl() in /in/4CHTU:9 Stack trace: #0 /in/4CHTU(14): Translate('Hello') #1 {main} thrown in /in/4CHTU on line 9
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
39.52 ms | 401 KiB | 8 Q