3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xmlFile = "<Font html:Face=\"Arial\" x:Family=\"Swiss\" html:Color=\"#000000\">"; $xmlFile = preg_replace('/<Font"\s+.+>/', '<Font $1 xmlns=\"http://www.w3.org/TR/REC-html40\">', $xmlFile); var_dump($xmlFile);

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.40.0140.00418.83
8.3.30.0100.00318.85
8.3.20.0080.00018.95
8.3.10.0060.00320.66
8.3.00.0030.00717.63
8.2.170.0130.01022.96
8.2.160.0100.01020.52
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0040.00419.89
8.2.110.0060.00320.81
8.2.100.0040.00717.91
8.2.90.0040.00419.05
8.2.80.0060.00317.93
8.2.70.0000.00817.75
8.2.60.0050.00317.92
8.2.50.0000.00818.07
8.2.40.0000.00918.22
8.2.30.0040.00417.97
8.2.20.0000.00717.80
8.2.10.0000.00817.70
8.2.00.0030.00617.80
8.1.270.0080.00024.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.48
8.1.230.0080.00420.88
8.1.220.0080.00017.74
8.1.210.0040.00418.84
8.1.200.0060.00317.35
8.1.190.0000.00717.40
8.1.180.0040.00418.10
8.1.170.0050.00318.74
8.1.160.0070.00018.95
8.1.150.0000.00718.64
8.1.140.0040.00417.41
8.1.130.0000.00717.88
8.1.120.0050.00217.51
8.1.110.0020.00517.45
8.1.100.0000.00817.43
8.1.90.0080.00017.53
8.1.80.0040.00417.54
8.1.70.0040.00417.43
8.1.60.0080.00017.69
8.1.50.0000.00817.47
8.1.40.0040.00417.63
8.1.30.0000.00817.74
8.1.20.0040.00417.63
8.1.10.0030.00617.60
8.1.00.0040.00417.49
8.0.300.0040.00420.02
8.0.290.0040.00416.75
8.0.280.0070.00018.47
8.0.270.0000.00717.21
8.0.260.0030.00316.94
8.0.250.0000.00717.07
8.0.240.0040.00416.99
8.0.230.0030.00317.05
8.0.220.0000.00716.97
8.0.210.0070.00017.02
8.0.200.0000.00616.94
8.0.190.0040.00417.05
8.0.180.0050.00316.99
8.0.170.0040.00417.04
8.0.160.0030.00316.95
8.0.150.0040.00417.02
8.0.140.0080.00316.95
8.0.130.0060.00013.36
8.0.120.0000.00716.98
8.0.110.0000.00816.98
8.0.100.0040.00416.96
8.0.90.0070.00016.86
8.0.80.0030.01817.00
8.0.70.0020.00517.04
8.0.60.0050.00216.84
8.0.50.0080.00016.86
8.0.30.0090.01017.33
8.0.20.0100.01017.10
8.0.10.0000.00817.02
8.0.00.0150.02816.92
7.4.330.0000.00513.11
7.4.320.0060.00316.66
7.4.300.0030.00316.71
7.4.290.0070.00016.63
7.4.280.0030.00616.63
7.4.270.0060.00016.79
7.4.260.0000.00513.40
7.4.250.0050.00316.74
7.4.240.0030.00516.75
7.4.230.0000.00716.75
7.4.220.0070.01116.78
7.4.210.0070.01116.71
7.4.200.0000.00716.58
7.4.190.0000.00716.78
7.4.160.0080.00816.34
7.4.150.0060.01316.69
7.4.140.0040.01516.63
7.4.130.0050.01216.57
7.4.120.0120.00616.64
7.4.110.0060.01116.50
7.4.100.0090.00916.85
7.4.90.0160.01016.59
7.4.80.0030.01916.60
7.4.70.0090.00616.54
7.4.60.0120.00616.70
7.4.50.0040.00416.35
7.4.40.0000.01516.61
7.4.30.0130.00316.80
7.4.00.0100.00615.22
7.3.330.0060.00013.15
7.3.320.0000.00613.26
7.3.310.0070.00016.36
7.3.300.0030.00316.15
7.3.290.0130.00916.40
7.3.280.0100.00716.26
7.3.270.0090.00916.74
7.3.260.0120.00916.48
7.3.250.0090.01216.41
7.3.240.0130.00316.66
7.3.230.0060.01316.25
7.3.210.0060.00916.28
7.3.200.0080.01519.39
7.3.190.0160.00716.41
7.3.180.0090.00616.50
7.3.170.0110.00716.52
7.3.160.0040.01116.38
7.3.120.0120.00314.74
7.2.330.0090.00916.73
7.2.320.0090.01516.75
7.2.310.0110.01116.66
7.2.300.0060.01216.64
7.2.290.0160.00016.69
7.2.80.0130.00916.45
7.2.60.0090.00616.99
7.1.200.0060.00615.83
7.1.70.0040.00417.20
7.1.60.0140.01119.40
7.1.50.0030.01617.14
7.1.00.0000.04722.41
7.0.200.0080.00316.85
7.0.140.0000.07021.95
7.0.120.0030.05722.09
7.0.60.0100.08319.87
7.0.50.0100.08717.88
7.0.40.0070.08319.98
7.0.30.0230.05320.32
7.0.20.0270.07320.32
7.0.10.0100.09020.01
7.0.00.0070.04320.19
5.6.280.0100.06721.06
5.6.210.0070.03720.47
5.6.200.0030.07718.21
5.6.190.0030.04320.45
5.6.180.0230.08020.77
5.6.170.0230.07320.49
5.6.160.0030.08720.70
5.6.150.0070.08018.19
5.6.140.0100.04018.14
5.6.130.0000.09018.21
5.6.120.0030.05721.01
5.6.110.0170.07321.13
5.6.100.0070.05021.08
5.6.90.0130.08320.97
5.6.80.0100.08020.52
5.5.350.0270.05320.43
5.5.340.0030.06017.99
5.5.330.0100.08020.56
5.5.320.0130.05020.29
5.5.310.0270.08020.30
5.5.300.0130.07317.89
5.5.290.0070.07317.96
5.5.280.0070.05320.88
5.5.270.0130.04320.66
5.5.260.0070.05720.83
5.5.250.0070.04020.67
5.5.240.0070.07320.15
5.4.450.0070.08019.47
5.4.440.0070.07719.41
5.4.430.0070.04019.32
5.4.420.0100.04719.50
5.4.410.0100.07319.23
5.4.400.0070.03719.08
5.4.390.0070.07319.19
5.4.380.0030.08319.14
5.4.370.0070.06318.79
5.4.360.0030.05319.00
5.4.350.0070.07319.00
5.4.340.0030.05018.79
5.4.320.0070.05319.07
5.4.310.0070.03719.08
5.4.300.0030.06719.17
5.4.290.0000.04319.14
5.4.280.0100.07319.08
5.4.270.0100.07019.17
5.4.260.0070.07719.08
5.4.250.0100.07018.90
5.4.240.0130.05318.79
5.4.230.0170.03719.07
5.4.220.0030.04319.21
5.4.210.0070.07019.17
5.4.200.0100.07019.13
5.4.190.0100.04018.78
5.4.180.0130.03719.17
5.4.170.0130.07319.14
5.4.160.0030.08018.90
5.4.150.0030.08019.14
5.4.140.0100.06716.29
5.4.130.0000.07716.21
5.4.120.0170.05716.34
5.4.110.0100.04316.26
5.4.100.0000.04016.33
5.4.90.0100.03316.14
5.4.80.0070.04716.30
5.4.70.0030.05016.40
5.4.60.0070.04716.24
5.4.50.0070.07016.22
5.4.40.0070.07316.20
5.4.30.0170.06016.12
5.4.20.0130.03316.21
5.4.10.0070.07716.31
5.4.00.0030.05715.81
5.3.290.0070.05014.64
5.3.280.0070.04314.53
5.3.270.0030.05314.54
5.3.260.0070.07314.62
5.3.250.0130.06314.52
5.3.240.0030.06714.61
5.3.230.0100.05714.55
5.3.220.0030.05714.49
5.3.210.0170.04314.50
5.3.200.0070.04014.49
5.3.190.0100.07314.57
5.3.180.0030.08014.48
5.3.170.0070.07314.48
5.3.160.0000.04714.64
5.3.150.0030.04014.50
5.3.140.0100.04714.50
5.3.130.0030.07014.49
5.3.120.0100.06314.38
5.3.110.0030.07014.42
5.3.100.0070.07314.00
5.3.90.0130.06713.96
5.3.80.0100.07013.94
5.3.70.0070.04713.83
5.3.60.0170.06313.84
5.3.50.0030.04713.93
5.3.40.0070.03713.89
5.3.30.0000.06013.83
5.3.20.0030.04713.61
5.3.10.0030.07013.63
5.3.00.0030.04713.57
5.2.170.0030.04311.15
5.2.160.0070.03011.13
5.2.150.0000.03311.13
5.2.140.0100.06011.13
5.2.130.0100.02311.03
5.2.120.0100.02311.25
5.2.110.0000.06711.07
5.2.100.0070.06710.92
5.2.90.0100.05711.09
5.2.80.0000.03710.97
5.2.70.0000.04310.95
5.2.60.0030.06311.04
5.2.50.0000.03710.86
5.2.40.0030.04710.85
5.2.30.0070.05310.90
5.2.20.0030.04310.95
5.2.10.0030.04710.84
5.2.00.0070.04010.75
5.1.60.0030.05310.01
5.1.50.0100.04310.14
5.1.40.0000.0339.98
5.1.30.0000.05310.34
5.1.20.0030.04010.38
5.1.10.0030.05710.08
5.1.00.0030.0379.97
5.0.50.0000.0308.57
5.0.40.0000.0438.30
5.0.30.0000.0378.18
5.0.20.0030.0378.24
5.0.10.0000.0408.21
5.0.00.0000.0678.17
4.4.90.0100.0237.83
4.4.80.0070.0207.83
4.4.70.0000.0237.83
4.4.60.0000.0277.83
4.4.50.0030.0277.83
4.4.40.0000.0477.83
4.4.30.0000.0377.83
4.4.20.0000.0207.83
4.4.10.0030.0137.83
4.4.00.0070.0537.83
4.3.110.0030.0337.83
4.3.100.0030.0307.83
4.3.90.0070.0337.83
4.3.80.0030.0237.83
4.3.70.0070.0307.83
4.3.60.0000.0237.83
4.3.50.0000.0377.83
4.3.40.0000.0537.83
4.3.30.0000.0377.83
4.3.20.0000.0307.83
4.3.10.0030.0337.83
4.3.00.0030.0337.83

preferences:
39.37 ms | 400 KiB | 5 Q