3v4l.org

run code in 300+ PHP versions simultaneously
<?php $substituir = array('FURG.','MEC.','MEC','AUT.','AUT','EXEC.','CONV.','SED.','INTERC.','EXPRES.','CLASS.','SED ','HAT.','PREM.','F.POWER','POW.','FLEXP.','ADVANT.','ECONOF.','ECONOFLEX','EXPRES.','TIP.','COMF.','COMF','T.FLEX','T. FLEX','TOT.FLEX','T. FIELD','TIPTRON','HIGHLI.','I MOTION','I-MOTI.','TIPTR','STRONIC','LUG.','EXCLUS.','EXCL.','SEDÃ','C.STYLE','C.PLUS','C./','LIMIT.','ELEG.','KOMP.','AVANTGARD','TOUR.','EXECUT.','AVANGARDE','EVOL.','EVOLUT.','INT.','BLIND.','INTERC.','CUPÊ','CUPÉ','COUPÊ','SED.','PRIV.','EXPRES.','EXP.','RANGE R.EVOQUE','DISCOVERY4','RANGE R.','FREELANDER2'); $novo = array('FURGÃO','MANUAL','MANUAL','AUTOMÁTICO','AUTOMÁTICO','EXECUTIVE','CONVERSÍVEL','SEDAN','INTERCOOLER','EXPRESSION','CLASSIC','SEDAN ','HATCH','PREMIUM','FLEXPOWER','POWER','FLEXPOWER','ADVANTAGE','ECONO.FLEX','ECONO.FLEX','EXPRESSION','TIPTRONIC','COMFORTLINE','COMFORTLINE','TOTAL FLEX','TOTAL FLEX','TOTAL FLEX','TRACK & FIELD','TIPTRONIC','HIGHLINE','I-MOTION','I-MOTION','TIPTRONIC','S-TRONIC','LUGARES','EXCLUSIVE','EXCLUSIVE','SEDAN','COMFORT STYLE','COMFORT PLUS','COMFORT/','LIMITED','ELEGANCE','KOMPRESSOR','AVANTGARDE','TOURING','EXECUTIVE','AVANTGARDE','EVOLUTION','EVOLUTION','INTERCOOLER','BLINDADO','INTERCOOLER','COUPÉ','COUPÉ','COUPÉ','SEDAN','PRIVILÈGE','EXPRESSION','EXPRESSION','RANGE ROVER EVOQUE','DISCOVERY 4','RANGE ROVER','FREELANDER 2'); for($i = 0; $i <count($substituir); $i++){ if(preg_match("/^([^\.]|([^\.])\.[^\.])*$/",$substituir[$i])) { $substituir[$i] = '#\\' . $substituir[$i]. '\\#i'; } else { $substituir[$i] = '#\b(' . $substituir[$i] . ')\b#i'; } } echo preg_replace('/\CLASS./',"CLASSIC","CORSA SED CLASS.LIFE FLEXPOWER");

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.60.0120.00618.68
8.3.50.0110.00721.33
8.3.40.0210.00019.05
8.3.30.0070.00720.21
8.3.20.0040.00420.29
8.3.10.0050.00321.21
8.3.00.0000.00822.46
8.2.180.0120.00918.54
8.2.170.0210.00022.96
8.2.160.0030.01022.01
8.2.150.0130.00624.18
8.2.140.0000.00724.66
8.2.130.0000.00726.16
8.2.120.0080.00021.05
8.2.110.0100.00022.37
8.2.100.0120.00018.09
8.2.90.0050.00317.75
8.2.80.0030.00618.05
8.2.70.0060.00318.16
8.2.60.0080.00017.93
8.2.50.0000.00819.88
8.2.40.0040.00420.55
8.2.30.0000.00719.57
8.2.20.0050.00317.91
8.2.10.0080.00017.85
8.2.00.0040.00418.02
8.1.280.0140.00425.92
8.1.270.0050.00223.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0000.00922.20
8.1.230.0140.00019.04
8.1.220.0060.00317.79
8.1.210.0060.00318.77
8.1.200.0040.00417.48
8.1.190.0090.00017.35
8.1.180.0000.00818.10
8.1.170.0050.00318.68
8.1.160.0030.00618.84
8.1.150.0000.00818.73
8.1.140.0000.00717.63
8.1.130.0000.00817.89
8.1.120.0000.00717.62
8.1.110.0030.00517.63
8.1.100.0070.00017.50
8.1.90.0040.00417.65
8.1.80.0050.00217.61
8.1.70.0050.00217.60
8.1.60.0030.00617.74
8.1.50.0000.00717.56
8.1.40.0040.00417.72
8.1.30.0080.00017.68
8.1.20.0000.00817.68
8.1.10.0000.00717.82
8.1.00.0000.00817.70
8.0.300.0040.00421.68
8.0.290.0040.00417.00
8.0.280.0040.00418.36
8.0.270.0000.00717.35
8.0.260.0000.00716.98
8.0.250.0000.00717.13
8.0.240.0030.00617.12
8.0.230.0030.00317.13
8.0.220.0000.00817.04
8.0.210.0040.00417.05
8.0.200.0030.00317.09
8.0.190.0000.00817.07
8.0.180.0000.00717.10
8.0.170.0000.00817.05
8.0.160.0040.00417.04
8.0.150.0040.00416.85
8.0.140.0000.00816.98
8.0.130.0000.00513.57
8.0.120.0000.00816.89
8.0.110.0040.00417.02
8.0.100.0000.00817.08
8.0.90.0000.00716.89
8.0.80.0060.00917.07
8.0.70.0030.00617.16
8.0.60.0040.00417.02
8.0.50.0050.00317.13
8.0.30.0090.01117.29
8.0.20.0100.01117.43
8.0.10.0080.00017.25
8.0.00.0140.01017.16
7.4.330.0000.00516.76
7.4.320.0030.00316.88
7.4.300.0060.00016.89
7.4.290.0070.00016.83
7.4.280.0070.00016.84
7.4.270.0070.00016.85
7.4.260.0030.00313.49
7.4.250.0000.00816.60
7.4.240.0010.00616.85
7.4.230.0040.00416.74
7.4.220.0200.00016.80
7.4.210.0090.00716.78
7.4.200.0000.00716.72
7.4.190.0030.00316.92
7.4.160.0060.00916.61
7.4.150.0150.00317.40
7.4.140.0100.00817.86
7.4.130.0070.01016.72
7.4.120.0080.00916.88
7.4.110.0070.01016.64
7.4.100.0130.01016.65
7.4.90.0100.00716.76
7.4.80.0070.01119.39
7.4.70.0100.00616.58
7.4.60.0100.00716.79
7.4.50.0000.00816.70
7.4.40.0080.00822.77
7.4.30.0080.00816.83
7.4.00.0070.01014.99
7.3.330.0000.00613.36
7.3.320.0000.00613.19
7.3.310.0020.00516.55
7.3.300.0030.00316.53
7.3.290.0110.00416.43
7.3.280.0080.00916.53
7.3.270.0120.00617.40
7.3.260.0080.01218.24
7.3.250.0160.00516.52
7.3.240.0070.01016.76
7.3.230.0180.00016.67
7.3.210.0120.00916.39
7.3.200.0000.01719.39
7.3.190.0060.01016.52
7.3.180.0070.01016.72
7.3.170.0060.01016.51
7.3.160.0060.00916.82
7.3.120.0060.00915.00
7.3.10.0090.00616.75
7.3.00.0120.00316.66
7.2.330.0100.00716.78
7.2.320.0120.00916.66
7.2.310.0090.00916.78
7.2.300.0060.01216.75
7.2.290.0130.00316.93
7.2.130.0100.00316.96
7.2.120.0000.01417.29
7.2.110.0070.00716.85
7.2.100.0070.00416.80
7.2.90.0060.00917.18
7.2.80.0030.01017.03
7.2.70.0040.01316.76
7.2.60.0090.00916.92
7.2.50.0100.00716.97
7.2.40.0040.01517.04
7.2.30.0100.00317.02
7.2.20.0120.00616.95
7.2.10.0030.01317.07
7.2.00.0070.00717.04
7.1.250.0030.00915.88
7.1.70.0090.00617.39
7.1.60.0070.01419.17
7.1.50.0030.02216.87
7.1.00.0030.03322.55
7.0.200.0000.01016.96
7.0.140.0070.08722.00
7.0.70.0100.07720.02
7.0.60.0130.08019.78
7.0.50.0000.05720.22
7.0.40.0000.08720.06
7.0.30.0070.08320.11
7.0.20.0170.06320.09
7.0.10.0100.08320.06
7.0.00.0000.06020.04
5.6.280.0070.07021.11
5.6.220.0170.07720.60
5.6.210.0070.08720.70
5.6.200.0170.08021.03
5.6.190.0130.06721.06
5.6.180.0130.07721.19
5.6.170.0070.09321.13
5.6.160.0230.07021.02
5.6.150.0030.08021.04
5.6.140.0170.04721.04
5.6.130.0070.04020.98
5.6.120.0100.04021.07
5.6.110.0070.05021.14
5.6.100.0070.04021.04
5.6.90.0070.04021.04
5.6.80.0100.04320.57
5.6.70.0030.07320.44
5.6.60.0100.02720.41
5.6.50.0070.05320.44
5.6.40.0030.04020.39
5.6.30.0100.02720.30
5.6.20.0070.05720.45
5.6.10.0030.04020.48
5.6.00.0100.03320.46
5.5.360.0130.08320.42
5.5.350.0170.07720.41
5.5.340.0030.09020.74
5.5.330.0130.07720.93
5.5.320.0130.05320.82
5.5.310.0170.07720.87
5.5.300.0070.08720.82
5.5.290.0070.04020.89
5.5.280.0030.04720.64
5.5.270.0000.04720.87
5.5.260.0030.04720.74
5.5.250.0030.04020.65
5.5.240.0000.04320.29
5.5.230.0030.04020.22
5.5.220.0000.03720.16
5.5.210.0030.08020.32
5.5.200.0070.03720.27
5.5.190.0070.03720.24
5.5.180.0070.03720.20
5.5.160.0030.04020.20
5.5.150.0000.07720.25
5.5.140.0000.03720.11
5.5.130.0100.02720.22
5.5.120.0000.03719.99
5.5.110.0070.04019.98
5.5.100.0070.03720.14
5.5.90.0030.04020.03
5.5.80.0030.03720.18
5.5.70.0100.03320.12
5.5.60.0000.03720.08
5.5.50.0000.03320.17
5.5.40.0070.03019.98
5.5.30.0130.08320.12
5.5.20.0130.06720.07
5.5.10.0030.08319.98
5.5.00.0030.05320.03
5.4.450.0030.08319.41
5.4.440.0070.03719.35
5.4.430.0030.04019.45
5.4.420.0000.04319.38
5.4.410.0030.04019.27
5.4.400.0000.03718.96
5.4.390.0000.04718.79
5.4.380.0070.07019.23
5.4.370.0030.03018.79
5.4.360.0170.02719.25
5.4.350.0100.03019.06
5.4.340.0030.04718.82
5.4.320.0030.05319.15
5.4.310.0070.03719.07
5.4.300.0100.05319.07
5.4.290.0070.03319.10
5.4.280.0000.04018.80
5.4.270.0070.03719.07
5.4.260.0000.04018.78
5.4.250.0070.03319.03
5.4.240.0070.07718.81
5.4.230.0030.03719.04
5.4.220.0070.04318.81
5.4.210.0100.03019.23
5.4.200.0000.03719.02
5.4.190.0100.07319.05
5.4.180.0130.07718.97
5.4.170.0130.07319.07
5.4.160.0100.07319.00
5.4.150.0070.04318.83
5.4.140.0000.04016.34
5.4.130.0170.06716.34
5.4.120.0170.06316.30
5.4.110.0070.07316.34
5.4.100.0100.08016.35
5.4.90.0030.08016.36
5.4.80.0070.07016.51
5.4.70.0130.06316.32
5.4.60.0130.06716.34
5.4.50.0100.07016.34
5.4.40.0030.07316.26
5.4.30.0100.06016.36
5.4.20.0100.05016.30
5.4.10.0030.06016.31
5.4.00.0100.06715.78
5.3.290.0070.03014.66
5.3.280.0030.04714.63
5.3.270.0100.07314.64
5.3.260.0030.08014.64
5.3.250.0030.05314.63
5.3.240.0130.03314.51
5.3.230.0070.06714.49
5.3.220.0170.07014.56
5.3.210.0070.08014.44
5.3.200.0030.05314.56
5.3.190.0070.08014.45
5.3.180.0130.05714.60
5.3.170.0100.04014.59
5.3.160.0100.07314.62
5.3.150.0130.07314.58
5.3.140.0130.07714.58
5.3.130.0070.08014.56
5.3.120.0170.07314.61
5.3.110.0070.08014.56
5.3.100.0170.07013.99
5.3.90.0070.04713.89
5.3.80.0000.04014.02
5.3.70.0100.06714.02
5.3.60.0070.07314.06
5.3.50.0070.04713.95
5.3.40.0070.05313.85
5.3.30.0100.07013.90
5.3.20.0030.03713.72
5.3.10.0100.07013.45
5.3.00.0070.06713.54
5.2.170.0100.05712.32
5.2.160.0130.06012.32
5.2.150.0000.03312.32
5.2.140.0000.04012.32
5.2.130.0100.02312.32
5.2.120.0100.05712.32
5.2.110.0030.05312.32
5.2.100.0070.06012.32
5.2.90.0100.05312.32
5.2.80.0000.06712.32
5.2.70.0070.06012.32
5.2.60.0100.06312.32
5.2.50.0000.07012.32
5.2.40.0030.05012.32
5.2.30.0070.06012.32
5.2.20.0030.05712.32
5.2.10.0070.06312.32
5.2.00.0030.06012.32
5.1.60.0130.04712.32
5.1.50.0100.04712.32
5.1.40.0030.05312.32
5.1.30.0070.05712.32
5.1.20.0130.05012.32
5.1.10.0100.05012.32
5.1.00.0100.05312.32
5.0.50.0030.04712.32
5.0.40.0070.04312.32
5.0.30.0070.05712.32
5.0.20.0030.04312.32
5.0.10.0070.04012.32
5.0.00.0030.05312.32
4.4.90.0030.03712.32
4.4.80.0000.03712.32
4.4.70.0030.04012.32
4.4.60.0000.03012.32
4.4.50.0030.03712.32
4.4.40.0070.05012.32
4.4.30.0030.03712.32
4.4.20.0000.03712.32
4.4.10.0030.03712.32
4.4.00.0000.06012.32
4.3.110.0000.04012.32
4.3.100.0000.02312.32
4.3.90.0100.02712.32
4.3.80.0030.04312.32
4.3.70.0070.03012.32
4.3.60.0070.03312.32
4.3.50.0000.04012.32
4.3.40.0030.04012.32
4.3.30.0000.04012.32
4.3.20.0000.04012.32
4.3.10.0030.03712.32
4.3.00.0000.03712.32

preferences:
65.12 ms | 401 KiB | 5 Q