3v4l.org

run code in 300+ PHP versions simultaneously
<?php $embedCode = '<iframe width=800 height=600> </iframe>'; echo preg_replace('~(<iframe[^>]*\swidth=["\']?)(\d+)(["\']?\s?.*)~', '${1}' . '666' . '${3}', $embedCode); echo preg_replace('~(<iframe[^>]*\sheight=["\']?)(\d+)(["\']?\s?.*)~', '${1}' . '666' . '${3}', $embedCode);

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.70.0120.00618.43
8.3.60.0140.00018.55
8.3.50.0140.00521.30
8.3.40.0070.01518.90
8.3.30.0040.01119.09
8.3.20.0080.00020.34
8.3.10.0040.00423.66
8.3.00.0090.00019.63
8.2.180.0110.01116.63
8.2.170.0070.01422.96
8.2.160.0130.00020.51
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00819.56
8.2.110.0050.00520.37
8.2.100.0090.00318.34
8.2.90.0000.00819.31
8.2.80.0080.00017.97
8.2.70.0030.00517.62
8.2.60.0000.00917.80
8.2.50.0040.00418.07
8.2.40.0000.00718.13
8.2.30.0060.00318.16
8.2.20.0030.00617.80
8.2.10.0080.00017.96
8.2.00.0030.00617.93
8.1.280.0060.00925.92
8.1.270.0060.00322.14
8.1.260.0030.00326.35
8.1.250.0040.00428.09
8.1.240.0080.00023.80
8.1.230.0040.00719.15
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0000.00817.35
8.1.180.0080.00018.10
8.1.170.0030.00718.71
8.1.160.0020.00522.04
8.1.150.0070.00018.83
8.1.140.0040.00417.51
8.1.130.0030.00617.88
8.1.120.0000.00717.55
8.1.110.0040.00417.58
8.1.100.0000.00717.56
8.1.90.0000.00717.58
8.1.80.0040.00417.48
8.1.70.0030.00317.48
8.1.60.0000.00917.66
8.1.50.0040.00417.53
8.1.40.0000.00917.56
8.1.30.0040.00417.79
8.1.20.0000.00817.77
8.1.10.0000.00817.63
8.1.00.0050.00317.61
8.0.300.0070.00018.77
8.0.290.0000.00816.75
8.0.280.0000.00718.48
8.0.270.0090.00017.19
8.0.260.0000.00617.28
8.0.250.0070.00017.04
8.0.240.0030.00317.03
8.0.230.0030.00316.96
8.0.220.0040.00416.93
8.0.210.0040.00417.01
8.0.200.0040.00417.00
8.0.190.0000.00916.95
8.0.180.0040.00316.91
8.0.170.0050.00317.02
8.0.160.0070.00017.04
8.0.150.0030.00316.98
8.0.140.0000.00817.00
8.0.130.0090.00013.40
8.0.120.0040.00416.91
8.0.110.0080.00017.01
8.0.100.0040.00416.94
8.0.90.0040.00417.06
8.0.80.0090.00617.07
8.0.70.0000.00717.10
8.0.60.0050.00216.92
8.0.50.0030.00516.98
8.0.30.0060.01317.13
8.0.20.0090.01117.40
8.0.10.0070.00017.20
8.0.00.0100.01017.05
7.4.330.0020.00215.00
7.4.320.0000.00716.67
7.4.300.0000.00616.67
7.4.290.0040.00416.71
7.4.280.0020.00516.80
7.4.270.0030.00316.63
7.4.260.0000.00716.70
7.4.250.0080.00016.70
7.4.240.0020.00616.72
7.4.230.0070.00016.84
7.4.220.0130.00716.69
7.4.210.0040.01116.73
7.4.200.0000.00716.88
7.4.160.0150.00016.54
7.4.150.0090.01217.40
7.4.140.0150.00817.86
7.4.130.0090.01116.71
7.4.120.0100.00816.75
7.4.110.0140.00416.64
7.4.100.0130.00416.64
7.4.90.0070.01116.61
7.4.80.0100.00719.39
7.4.70.0030.01316.64
7.4.60.0070.01016.66
7.4.50.0080.00016.51
7.4.40.0160.00616.68
7.4.30.0120.01016.67
7.4.00.0080.00815.01
7.3.330.0030.00513.20
7.3.320.0030.00313.24
7.3.310.0040.00416.30
7.3.300.0000.00616.29
7.3.290.0070.00716.30
7.3.280.0100.00516.31
7.3.270.0040.01417.40
7.3.260.0190.00616.35
7.3.250.0080.00816.55
7.3.240.0070.01116.59
7.3.230.0030.01416.45
7.3.210.0100.01316.31
7.3.200.0130.01019.39
7.3.190.0030.01716.51
7.3.180.0140.00316.35
7.3.170.0110.00716.37
7.3.160.0080.00816.55
7.2.330.0130.00416.62
7.2.320.0000.01616.55
7.2.310.0100.01016.61
7.2.300.0060.00916.70
7.2.290.0030.01516.47
7.2.110.0150.00616.61
7.1.70.0030.00617.28
7.1.60.0130.01019.32
7.1.50.0000.01116.65
7.1.00.0000.08022.41
7.0.200.0030.00716.85
7.0.140.0070.07022.08
7.0.60.0070.08719.95
7.0.50.0030.04017.69
7.0.40.0070.04720.15
7.0.30.0330.05020.21
7.0.20.0270.06320.02
7.0.10.0070.07320.03
7.0.00.0030.07720.21
5.6.280.0030.07021.09
5.6.210.0070.08720.66
5.6.200.0030.05718.23
5.6.190.0100.07720.43
5.6.180.0230.05320.40
5.6.170.0330.08320.46
5.6.160.0070.03720.49
5.6.150.0070.05318.17
5.6.140.0000.04318.20
5.6.130.0100.05018.17
5.6.120.0100.06020.91
5.6.110.0030.04020.98
5.6.100.0130.08020.97
5.6.90.0230.07020.97
5.6.80.0070.04020.41
5.5.350.0100.08720.53
5.5.340.0070.08318.02
5.5.330.0130.07320.07
5.5.320.0370.07720.22
5.5.310.0300.07720.29
5.5.300.0030.05017.97
5.5.290.0130.04717.93
5.5.280.0070.06720.95
5.5.270.0030.05020.75
5.5.260.0170.07320.63
5.5.250.0030.08320.68
5.5.240.0200.07720.15
5.4.450.1870.03319.45
5.4.440.2070.04319.42
5.4.430.1900.03719.45
5.4.420.2070.04719.53
5.4.410.2070.04319.29
5.4.400.2170.04019.09
5.4.390.2070.04019.11
5.4.380.1430.03718.88
5.4.370.0030.07018.88
5.4.360.0200.06019.08
5.4.350.0070.06319.24
5.4.340.1600.04019.09
5.4.320.2030.03719.08
5.4.310.2200.04018.88
5.4.300.2400.05019.13
5.4.290.1870.04018.88
5.4.280.1770.04319.23
5.4.270.2030.04719.14
5.4.260.1830.03319.16
5.4.250.1800.03719.08
5.4.240.2100.03318.95
5.4.230.2070.04319.08
5.4.220.1700.04719.12
5.4.210.2030.04718.80
5.4.200.2130.04019.11
5.4.190.2070.04719.07
5.4.180.1970.03719.03
5.4.170.1870.04019.11
5.4.160.1800.03718.77
5.4.150.2030.04719.10
5.4.140.1830.03716.25
5.4.130.2070.04716.21
5.4.120.2030.03316.29
5.4.110.1900.03316.30
5.4.100.2070.03716.51
5.4.90.1930.04016.22
5.4.80.1900.04316.05
5.4.70.1770.03716.29
5.4.60.1630.04016.45
5.4.50.1730.03716.36
5.4.40.1570.03016.36
5.4.30.1500.03316.42
5.4.20.1700.03316.39
5.4.10.1230.03716.27
5.4.00.0070.03715.76
5.3.290.0000.04314.75
5.3.280.1170.04314.64
5.3.270.1830.03714.61
5.3.260.1700.04314.46
5.3.250.0030.03714.54
5.3.240.0070.03714.46
5.3.230.0000.04714.44
5.3.220.1070.04314.42
5.3.210.2100.04014.51
5.3.200.2000.03014.40
5.3.190.2130.03714.47
5.3.180.1970.03714.55
5.3.170.1730.03314.50
5.3.160.1800.04014.66
5.3.150.0170.03714.37
5.3.140.0000.04714.40
5.3.130.0670.03314.37
5.3.120.1670.03714.38
5.3.110.1770.04014.40
5.3.100.1930.02713.87
5.3.90.1830.04313.88
5.3.80.2030.04713.87
5.3.70.2170.04313.97
5.3.60.2000.03713.96
5.3.50.2170.04013.99
5.3.40.1930.04313.96
5.3.30.1870.04314.02
5.3.20.0130.04013.57
5.3.10.0070.06313.56
5.3.00.0730.04713.62
5.2.170.1470.03711.19
5.2.160.1470.03011.23
5.2.150.1630.02710.98
5.2.140.1500.03011.00
5.2.130.1600.03311.15
5.2.120.1570.02710.96
5.2.110.1600.02311.18
5.2.100.1430.02711.11
5.2.90.1700.03310.99
5.2.80.1630.03711.00
5.2.70.1670.03310.93
5.2.60.1570.02711.09
5.2.50.0400.03710.90
5.2.40.0130.03010.84
5.2.30.0230.02710.83
5.2.20.0170.02311.04
5.2.10.0170.05310.80
5.2.00.0070.05310.78
5.1.60.0100.0309.88
5.1.50.0170.0279.96
5.1.40.0100.04310.10
5.1.30.0100.04010.20
5.1.20.0130.02310.25
5.1.10.0070.0379.96
5.1.00.0130.03010.04
5.0.50.0100.0208.44
5.0.40.0030.0278.47
5.0.30.0070.0408.11
5.0.20.0070.0238.09
5.0.10.0070.0208.09
5.0.00.0070.0308.23
4.4.90.0030.0377.45
4.4.80.0070.0137.45
4.4.70.0030.0177.45
4.4.60.0030.0207.45
4.4.50.0100.0107.45
4.4.40.0070.0277.45
4.4.30.0030.0177.45
4.4.20.0130.0277.45
4.4.10.0030.0277.45
4.4.00.0100.0307.45
4.3.110.0070.0307.45
4.3.100.0100.0277.45
4.3.90.0030.0237.45
4.3.80.0130.0277.45
4.3.70.0070.0177.45
4.3.60.0070.0137.45
4.3.50.0030.0177.45
4.3.40.0030.0307.45
4.3.30.0030.0377.45
4.3.20.0000.0207.45
4.3.10.0030.0137.45
4.3.00.0070.0177.45

preferences:
60.83 ms | 401 KiB | 5 Q