3v4l.org

run code in 500+ PHP versions simultaneously
<?php $res = 'var Currency={rates:{USD:1,EUR:1.0983,GBP:1.31733,CAD:.800858,ARS:.00904727,AUD:.75178,BRL:.210922,CLP:.00128541,CNY:.157087,CYP:.397899,CZK:.0446045,DKK:.147629,EEK:.0706676,HKD:.127735,HUF:.00294676,ISK:.00770172,INR:.0131101,JMD:.00654274,JPY:.00817897,LVL:1.57329,LTL:.320236,MTL:.293496,MXN:.0499162,NZD:.695777,NOK:.11595,PLN:.234287,SGD:.736054,SKK:21.5517,SIT:175.439,ZAR:.0686901,KRW:815996e-9,SEK:.106224,CHF:1.07381,TWD:.034845,UYU:.0239158,MYR:.237501,BSD:1,CRC:.00153961,RON:.221893,PHP:.0191704,AED:.272294,VEB:230614e-14,IDR:697238e-10,TRY:.0673838,THB:.0297276,TTD:.146985,ILS:.31085,SYP:398005e-9,XCD:.369793,COP:263589e-9,RUB:.00966102,HRK:.14496,KZT:.00203014,TZS:43113e-8,XPT:1004.69,SAR:.266667,NIO:.0278777,LAK:85788e-9,OMR:2.60078,AMD:.00204601,CDF:500857e-9,KPW:.00111119,SPL:6,KES:.00871131,ZWD:.00276319,KHR:246721e-9,MVR:.0647171,GTQ:.129983,BZD:.495991,BYR:306824e-10,LYD:.21387,DZD:.00699752,BIF:496467e-9,GIP:1.31733,BOB:.145461,XOF:.00167435,STD:447764e-10,NGN:.00240515,PGK:.285101,ERN:.0666667,MWK:.00122221,CUP:.0410274,GMD:.018454,CVE:.00996012,BTN:.0131101,XAF:.00167435,UGX:278051e-9,MAD:.103051,MNT:340512e-9,LSL:.0686901,XAG:25.4955,TOP:.446568,SHP:1.31733,RSD:.00933511,HTG:.00945061,MGA:24668e-8,MZN:.0156728,FKP:1.31733,BWP:.0869892,HNL:.0408712,PYG:143371e-9,JEP:1.31733,EGP:.0546599,LBP:66335e-8,ANG:.558874,WST:.391797,TVD:.75178,GYD:.00477425,GGP:1.31733,NPR:.00818998,KMF:.00223247,IRR:236899e-10,XPD:2372.09,SRD:.0481896,TMM:572519e-10,SZL:.0686901,MOP:.124014,BMD:1,XPF:.00920377,ETB:.0196078,JOD:1.41044,MDL:.0545282,MRO:.0027407,YER:.00399533,BAM:.561553,AWG:.558659,PEN:.267562,VEF:230614e-11,SLL:846608e-10,KYD:1.21954,AOA:.00219566,TND:.338733,TJS:.0768049,SCR:.0696208,LKR:.00341871,DJF:.00562232,GNF:112057e-9,VUV:.00899358,SDG:.00223845,IMP:1.31733,GEL:.312032,FJD:.479751,DOP:.0181777,XDR:1.37741,MUR:.0225481,MMK:562877e-9,LRD:.00654182,BBD:.5,ZMK:558212e-10,XAU:1957.31,VND:439053e-10,UAH:.0338392,TMT:.286259,IQD:685133e-9,BGN:.561553,KGS:.0104998,RWF:98194e-8,BHD:2.65957,UZS:869727e-10,PKR:.00549309,MKD:.017851,AFN:.0113532,NAD:.0686901,BDT:.0116392,AZN:.588589,SOS:.00172636,QAR:.274725,PAB:1,CUC:1,SVC:.114286,SBD:.12355,ALL:.00900249,BND:.736054,KWD:3.28665,GHS:.134945,ZMW:.0558212,XBT:47626.4,NTD:.0337206,BYN:.306824,CNH:.156524,MRU:.027407,STN:.0447764,VES:.230614,MXV:.342631,VED:.230614},convert:function(D,R,S){return D*this.rates[R]/this.rates[S]}}; //# sourceMappingURL=/s/javascripts/currencies.js.map'; $res = trim(str_replace("var Currency=", "", $res)); $res = str_replace(",convert:function(D,R,S){return D*this.rates[R]/this.rates[S]}};", "", $res); $res = str_replace("//# sourceMappingURL=/s/javascripts/currencies.js.map", "", $res); $res = str_replace('{', '{"', $res); $res = str_replace(':', '":"', $res); $res = str_replace(',', '","', $res); $res = str_replace('}', '"}', $res); $res = str_replace('"rates":"', '"rates":', $res); $res = str_replace("\n", "", $res); $red = htmlentities($res); $res = str_replace('&quot;', '"', $res); $res = trim($res); $res = str_replace('"{', '{', $res); $res = str_replace('}"', '}', $res); $res = $res."}"; $enc = json_decode($res, true); var_dump($res); var_dump($enc);

Abusive script

This script was stopped while abusing our resources

Output for 7.4.0 - 7.4.33, 8.0.1 - 8.0.30, 8.1.0 - 8.1.29, 8.2.0 - 8.2.23, 8.3.0 - 8.3.11
string(3090) "{"rates":{"USD":"1","EUR":"1.0983","GBP":"1.31733","CAD":".800858","ARS":".00904727","AUD":".75178","BRL":".210922","CLP":".00128541","CNY":".157087","CYP":".397899","CZK":".0446045","DKK":".147629","EEK":".0706676","HKD":".127735","HUF":".00294676","ISK":".00770172","INR":".0131101","JMD":".00654274","JPY":".00817897","LVL":"1.57329","LTL":".320236","MTL":".293496","MXN":".0499162","NZD":".695777","NOK":".11595","PLN":".234287","SGD":".736054","SKK":"21.5517","SIT":"175.439","ZAR":".0686901","KRW":"815996e-9","SEK":".106224","CHF":"1.07381","TWD":".034845","UYU":".0239158","MYR":".237501","BSD":"1","CRC":".00153961","RON":".221893","PHP":".0191704","AED":".272294","VEB":"230614e-14","IDR":"697238e-10","TRY":".0673838","THB":".0297276","TTD":".146985","ILS":".31085","SYP":"398005e-9","XCD":".369793","COP":"263589e-9","RUB":".00966102","HRK":".14496","KZT":".00203014","TZS":"43113e-8","XPT":"1004.69","SAR":".266667","NIO":".0278777","LAK":"85788e-9","OMR":"2.60078","AMD":".00204601","CDF":"500857e-9","KPW":".00111119","SPL":"6","KES":".00871131","ZWD":".00276319","KHR":"246721e-9","MVR":".0647171","GTQ":".129983","BZD":".495991","BYR":"306824e-10","LYD":".21387","DZD":".00699752","BIF":"496467e-9","GIP":"1.31733","BOB":".145461","XOF":".00167435","STD":"447764e-10","NGN":".00240515","PGK":".285101","ERN":".0666667","MWK":".00122221","CUP":".0410274","GMD":".018454","CVE":".00996012","BTN":".0131101","XAF":".00167435","UGX":"278051e-9","MAD":".103051","MNT":"340512e-9","LSL":".0686901","XAG":"25.4955","TOP":".446568","SHP":"1.31733","RSD":".00933511","HTG":".00945061","MGA":"24668e-8","MZN":".0156728","FKP":"1.31733","BWP":".0869892","HNL":".0408712","PYG":"143371e-9","JEP":"1.31733","EGP":".0546599","LBP":"66335e-8","ANG":".558874","WST":".391797","TVD":".75178","GYD":".00477425","GGP":"1.31733","NPR":".00818998","KMF":".00223247","IRR":"236899e-10","XPD":"2372.09","SRD":".0481896","TMM":"572519e-10","SZL":".0686901","MOP":".124014","BMD":"1","XPF":".00920377","ETB":".0196078","JOD":"1.41044","MDL":".0545282","MRO":".0027407","YER":".00399533","BAM":".561553","AWG":".558659","PEN":".267562","VEF":"230614e-11","SLL":"846608e-10","KYD":"1.21954","AOA":".00219566","TND":".338733","TJS":".0768049","SCR":".0696208","LKR":".00341871","DJF":".00562232","GNF":"112057e-9","VUV":".00899358","SDG":".00223845","IMP":"1.31733","GEL":".312032","FJD":".479751","DOP":".0181777","XDR":"1.37741","MUR":".0225481","MMK":"562877e-9","LRD":".00654182","BBD":".5","ZMK":"558212e-10","XAU":"1957.31","VND":"439053e-10","UAH":".0338392","TMT":".286259","IQD":"685133e-9","BGN":".561553","KGS":".0104998","RWF":"98194e-8","BHD":"2.65957","UZS":"869727e-10","PKR":".00549309","MKD":".017851","AFN":".0113532","NAD":".0686901","BDT":".0116392","AZN":".588589","SOS":".00172636","QAR":".274725","PAB":"1","CUC":"1","SVC":".114286","SBD":".12355","ALL":".00900249","BND":".736054","KWD":"3.28665","GHS":".134945","ZMW":".0558212","XBT":"47626.4","NTD":".0337206","BYN":".306824","CNH":".156524","MRU":".027407","STN":".0447764","VES":".230614","MXV":".342631","VED":".230614"}}" array(1) { ["rates"]=> array(185) { ["USD"]=> string(1) "1" ["EUR"]=> string(6) "1.0983" ["GBP"]=> string(7) "1.31733" ["CAD"]=> string(7) ".800858" ["ARS"]=> string(9) ".00904727" ["AUD"]=> string(6) ".75178" ["BRL"]=> string(7) ".210922" ["CLP"]=> string(9) ".00128541" ["CNY"]=> string(7) ".157087" ["CYP"]=> string(7) ".397899" ["CZK"]=> string(8) ".0446045" ["DKK"]=> string(7) ".147629" ["EEK"]=> string(8) ".0706676" ["HKD"]=> string(7) ".127735" ["HUF"]=> string(9) ".00294676" ["ISK"]=> string(9) ".00770172" ["INR"]=> string(8) ".0131101" ["JMD"]=> string(9) ".00654274" ["JPY"]=> string(9) ".00817897" ["LVL"]=> string(7) "1.57329" ["LTL"]=> string(7) ".320236" ["MTL"]=> string(7) ".293496" ["MXN"]=> string(8) ".0499162" ["NZD"]=> string(7) ".695777" ["NOK"]=> string(6) ".11595" ["PLN"]=> string(7) ".234287" ["SGD"]=> string(7) ".736054" ["SKK"]=> string(7) "21.5517" ["SIT"]=> string(7) "175.439" ["ZAR"]=> string(8) ".0686901" ["KRW"]=> string(9) "815996e-9" ["SEK"]=> string(7) ".106224" ["CHF"]=> string(7) "1.07381" ["TWD"]=> string(7) ".034845" ["UYU"]=> string(8) ".0239158" ["MYR"]=> string(7) ".237501" ["BSD"]=> string(1) "1" ["CRC"]=> string(9) ".00153961" ["RON"]=> string(7) ".221893" ["PHP"]=> string(8) ".0191704" ["AED"]=> string(7) ".272294" ["VEB"]=> string(10) "230614e-14" ["IDR"]=> string(10) "697238e-10" ["TRY"]=> string(8) ".0673838" ["THB"]=> string(8) ".0297276" ["TTD"]=> string(7) ".146985" ["ILS"]=> string(6) ".31085" ["SYP"]=> string(9) "398005e-9" ["XCD"]=> string(7) ".369793" ["COP"]=> string(9) "263589e-9" ["RUB"]=> string(9) ".00966102" ["HRK"]=> string(6) ".14496" ["KZT"]=> string(9) ".00203014" ["TZS"]=> string(8) "43113e-8" ["XPT"]=> string(7) "1004.69" ["SAR"]=> string(7) ".266667" ["NIO"]=> string(8) ".0278777" ["LAK"]=> string(8) "85788e-9" ["OMR"]=> string(7) "2.60078" ["AMD"]=> string(9) ".00204601" ["CDF"]=> string(9) "500857e-9" ["KPW"]=> string(9) ".00111119" ["SPL"]=> string(1) "6" ["KES"]=> string(9) ".00871131" ["ZWD"]=> string(9) ".00276319" ["KHR"]=> string(9) "246721e-9" ["MVR"]=> string(8) ".0647171" ["GTQ"]=> string(7) ".129983" ["BZD"]=> string(7) ".495991" ["BYR"]=> string(10) "306824e-10" ["LYD"]=> string(6) ".21387" ["DZD"]=> string(9) ".00699752" ["BIF"]=> string(9) "496467e-9" ["GIP"]=> string(7) "1.31733" ["BOB"]=> string(7) ".145461" ["XOF"]=> string(9) ".00167435" ["STD"]=> string(10) "447764e-10" ["NGN"]=> string(9) ".00240515" ["PGK"]=> string(7) ".285101" ["ERN"]=> string(8) ".0666667" ["MWK"]=> string(9) ".00122221" ["CUP"]=> string(8) ".0410274" ["GMD"]=> string(7) ".018454" ["CVE"]=> string(9) ".00996012" ["BTN"]=> string(8) ".0131101" ["XAF"]=> string(9) ".00167435" ["UGX"]=> string(9) "278051e-9" ["MAD"]=> string(7) ".103051" ["MNT"]=> string(9) "340512e-9" ["LSL"]=> string(8) ".0686901" ["XAG"]=> string(7) "25.4955" ["TOP"]=> string(7) ".446568" ["SHP"]=> string(7) "1.31733" ["RSD"]=> string(9) ".00933511" ["HTG"]=> string(9) ".00945061" ["MGA"]=> string(8) "24668e-8" ["MZN"]=> string(8) ".0156728" ["FKP"]=> string(7) "1.31733" ["BWP"]=> string(8) ".0869892" ["HNL"]=> string(8) ".0408712" ["PYG"]=> string(9) "143371e-9" ["JEP"]=> string(7) "1.31733" ["EGP"]=> string(8) ".0546599" ["LBP"]=> string(8) "66335e-8" ["ANG"]=> string(7) ".558874" ["WST"]=> string(7) ".391797" ["TVD"]=> string(6) ".75178" ["GYD"]=> string(9) ".00477425" ["GGP"]=> string(7) "1.31733" ["NPR"]=> string(9) ".00818998" ["KMF"]=> string(9) ".00223247" ["IRR"]=> string(10) "236899e-10" ["XPD"]=> string(7) "2372.09" ["SRD"]=> string(8) ".0481896" ["TMM"]=> string(10) "572519e-10" ["SZL"]=> string(8) ".0686901" ["MOP"]=> string(7) ".124014" ["BMD"]=> string(1) "1" ["XPF"]=> string(9) ".00920377" ["ETB"]=> string(8) ".0196078" ["JOD"]=> string(7) "1.41044" ["MDL"]=> string(8) ".0545282" ["MRO"]=> string(8) ".0027407" ["YER"]=> string(9) ".00399533" ["BAM"]=> string(7) ".561553" ["AWG"]=> string(7) ".558659" ["PEN"]=> string(7) ".267562" ["VEF"]=> string(10) "230614e-11" ["SLL"]=> string(10) "846608e-10" ["KYD"]=> string(7) "1.21954" ["AOA"]=> string(9) ".00219566" ["TND"]=> string(7) ".338733" ["TJS"]=> string(8) ".0768049" ["SCR"]=> string(8) ".0696208" ["LKR"]=> string(9) ".00341871" ["DJF"]=> string(9) ".00562232" ["GNF"]=> string(9) "112057e-9" ["VUV"]=> string(9) ".00899358" ["SDG"]=> string(9) ".00223845" ["IMP"]=> string(7) "1.31733" ["GEL"]=> string(7) ".312032" ["FJD"]=> string(7) ".479751" ["DOP"]=> string(8) ".0181777" ["XDR"]=> string(7) "1.37741" ["MUR"]=> string(8) ".0225481" ["MMK"]=> string(9) "562877e-9" ["LRD"]=> string(9) ".00654182" ["BBD"]=> string(2) ".5" ["ZMK"]=> string(10) "558212e-10" ["XAU"]=> string(7) "1957.31" ["VND"]=> string(10) "439053e-10" ["UAH"]=> string(8) ".0338392" ["TMT"]=> string(7) ".286259" ["IQD"]=> string(9) "685133e-9" ["BGN"]=> string(7) ".561553" ["KGS"]=> string(8) ".0104998" ["RWF"]=> string(8) "98194e-8" ["BHD"]=> string(7) "2.65957" ["UZS"]=> string(10) "869727e-10" ["PKR"]=> string(9) ".00549309" ["MKD"]=> string(7) ".017851" ["AFN"]=> string(8) ".0113532" ["NAD"]=> string(8) ".0686901" ["BDT"]=> string(8) ".0116392" ["AZN"]=> string(7) ".588589" ["SOS"]=> string(9) ".00172636" ["QAR"]=> string(7) ".274725" ["PAB"]=> string(1) "1" ["CUC"]=> string(1) "1" ["SVC"]=> string(7) ".114286" ["SBD"]=> string(6) ".12355" ["ALL"]=> string(9) ".00900249" ["BND"]=> string(7) ".736054" ["KWD"]=> string(7) "3.28665" ["GHS"]=> string(7) ".134945" ["ZMW"]=> string(8) ".0558212" ["XBT"]=> string(7) "47626.4" ["NTD"]=> string(8) ".0337206" ["BYN"]=> string(7) ".306824" ["CNH"]=> string(7) ".156524" ["MRU"]=> string(7) ".027407" ["STN"]=> string(8) ".0447764" ["VES"]=> string(7) ".230614" ["MXV"]=> string(7) ".342631" ["VED"]=> string(7) ".230614" } }

preferences:
110.56 ms | 2593 KiB | 4 Q