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

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).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.110.0040.00816.53
8.3.100.0070.00418.25
8.3.90.0140.00426.77
8.3.80.0000.00916.88
8.3.70.0120.00616.61
8.3.60.0150.00916.36
8.3.50.0110.00718.44
8.3.40.0130.00320.29
8.3.30.0100.00619.29
8.3.20.0090.00024.18
8.3.10.0040.00424.66
8.3.00.0090.00026.16
8.2.230.0050.00520.94
8.2.220.0070.00324.06
8.2.210.0060.00326.77
8.2.200.0030.00718.41
8.2.190.0100.00718.01
8.2.180.0140.00725.92
8.2.170.0170.00718.91
8.2.160.0100.00722.96
8.2.150.0060.00325.66
8.2.140.0090.00024.66
8.2.130.0090.00026.16
8.2.120.0080.00026.16
8.2.110.0090.00322.28
8.2.100.0000.01317.84
8.2.90.0000.00817.63
8.2.80.0100.00018.54
8.2.70.0000.01017.50
8.2.60.0060.00317.63
8.2.50.0000.00817.98
8.2.40.0030.00518.16
8.2.30.0040.00418.19
8.2.20.0000.00820.42
8.2.10.0080.00018.30
8.2.00.0080.00019.48
8.1.290.0030.00730.84
8.1.280.0100.00625.92
8.1.270.0040.00423.99
8.1.260.0030.00626.35
8.1.250.0090.00028.09
8.1.240.0070.00324.02
8.1.230.0060.00619.10
8.1.220.0080.00317.78
8.1.210.0060.00318.77
8.1.200.0060.00317.35
8.1.190.0060.00617.13
8.1.180.0030.00618.10
8.1.170.0060.00317.62
8.1.160.0040.00420.64
8.1.150.0040.00418.54
8.1.140.0040.00417.32
8.1.130.0040.00417.39
8.1.120.0000.00917.45
8.1.110.0060.00317.43
8.1.100.0030.00617.39
8.1.90.0080.00017.41
8.1.80.0070.00417.47
8.1.70.0050.00217.42
8.1.60.0060.00317.58
8.1.50.0060.00317.38
8.1.40.0060.00317.52
8.1.30.0000.00817.57
8.1.20.0030.00617.50
8.1.10.0000.00817.57
8.1.00.0070.00317.43
8.0.300.0080.00019.76
8.0.290.0150.00016.58
8.0.280.0040.00418.54
8.0.270.0080.00016.74
8.0.260.0030.00616.88
8.0.250.0060.00316.92
8.0.240.0000.00716.94
8.0.230.0070.00016.90
8.0.220.0040.00416.96
8.0.210.0040.00416.92
8.0.200.0000.00817.03
8.0.190.0000.01117.00
8.0.180.0080.00016.86
8.0.170.0000.01116.95
8.0.160.0100.00216.98
8.0.150.0040.00816.90
8.0.140.0070.00416.84
8.0.130.0050.00516.68
8.0.120.0030.00816.82
8.0.110.0110.00016.81
8.0.100.0060.00616.84
8.0.90.0070.00416.96
8.0.80.0130.00316.79
8.0.70.0080.01216.80
8.0.60.0110.01016.92
8.0.50.0140.00716.82
8.0.30.0160.00616.91
8.0.20.0170.00316.83
8.0.10.0170.00716.98
7.4.330.0000.00715.55
7.4.320.0030.00316.62
7.4.300.0000.00716.50
7.4.290.0040.00416.46
7.4.280.0160.00616.48
7.4.270.0180.00316.63
7.4.260.0190.00416.59
7.4.250.0150.00816.59
7.4.240.0190.00316.60
7.4.230.0190.00416.49
7.4.220.0120.00916.57
7.4.210.0160.00816.58
7.4.200.0290.00416.57
7.4.190.0160.00316.66
7.4.180.0190.00016.65
7.4.160.0200.00016.45
7.4.150.0150.00516.39
7.4.140.0130.00716.34
7.4.130.0170.00316.50
7.4.120.0190.00016.43
7.4.110.0120.00816.37
7.4.100.0140.00716.52
7.4.90.0170.00316.38
7.4.80.0090.00916.32
7.4.70.0110.00516.27
7.4.60.0050.01016.32
7.4.50.0080.00316.36
7.4.40.0070.00416.33
7.4.30.0070.00416.37
7.4.20.0000.00916.45
7.4.10.0040.00416.44
7.4.00.0000.00816.41

preferences:
59.62 ms | 2568 KiB | 5 Q