3v4l.org

run code in 300+ PHP versions simultaneously
<?php $title = 'Peugeot 107'; $patterns = array('107', '108', '207', '208', '2008', '308', '3008', '508', '5008 SW' ); echo preg_replace('/(\d+)/i', '<span class="h1firstword">$1</span>', $title); ?>

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.0140.00718.12
8.3.50.0050.01222.02
8.3.40.0170.00318.96
8.3.30.0120.00319.08
8.3.20.0000.00720.16
8.3.10.0090.00023.49
8.3.00.0140.00019.08
8.2.180.0070.00716.88
8.2.170.0110.00422.96
8.2.160.0030.01020.29
8.2.150.0000.00724.18
8.2.140.0030.00524.66
8.2.130.0080.00026.16
8.2.120.0040.00420.97
8.2.110.0040.00721.17
8.2.100.0000.01117.84
8.2.90.0000.00817.75
8.2.80.0040.00917.97
8.2.70.0000.00817.93
8.2.60.0080.00018.16
8.2.50.0090.00018.10
8.2.40.0060.00321.23
8.2.30.0030.00519.28
8.2.20.0040.00417.81
8.2.10.0040.00418.02
8.2.00.0040.00417.75
8.1.280.0040.01125.92
8.1.270.0000.00823.97
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0100.00022.40
8.1.230.0080.00417.64
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.22
8.1.190.0000.00817.25
8.1.180.0050.00318.10
8.1.170.0040.00418.62
8.1.160.0030.00618.95
8.1.150.0040.00418.79
8.1.140.0080.00017.44
8.1.130.0000.00717.81
8.1.120.0040.00317.52
8.1.110.0040.00417.53
8.1.100.0030.00317.57
8.1.90.0080.00017.58
8.1.80.0050.00317.54
8.1.70.0050.00217.52
8.1.60.0040.00417.66
8.1.50.0040.00417.53
8.1.40.0050.00217.58
8.1.30.0050.00517.64
8.1.20.0040.00417.76
8.1.10.0000.00817.67
8.1.00.0070.00017.58
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0000.00718.31
8.0.270.0020.00517.29
8.0.260.0030.00317.32
8.0.250.0000.00717.11
8.0.240.0000.00717.04
8.0.230.0030.00317.08
8.0.220.0040.00416.89
8.0.210.0070.00016.96
8.0.200.0000.00717.03
8.0.190.0030.00317.11
8.0.180.0040.00417.00
8.0.170.0000.00817.00
8.0.160.0070.00016.97
8.0.150.0000.00816.95
8.0.140.0000.00716.98
8.0.130.0030.00313.49
8.0.120.0000.00716.94
8.0.110.0070.00016.88
8.0.100.0000.00717.04
8.0.90.0040.00416.95
8.0.80.0030.01317.00
8.0.70.0060.00316.96
8.0.60.0070.00016.97
8.0.50.0000.00716.88
8.0.30.0130.00517.15
8.0.20.0110.00817.40
8.0.10.0000.00716.96
8.0.00.0070.01016.83
7.4.330.0000.00615.00
7.4.320.0060.00016.64
7.4.300.0000.00616.55
7.4.290.0070.00016.65
7.4.280.0040.00416.63
7.4.270.0000.00716.70
7.4.260.0070.00016.78
7.4.250.0070.00016.71
7.4.240.0040.00316.74
7.4.230.0070.00016.59
7.4.220.0130.00316.76
7.4.210.0100.00716.68
7.4.200.0030.00316.70
7.4.160.0060.01016.51
7.4.150.0060.01217.40
7.4.140.0080.01417.86
7.4.130.0050.01116.61
7.4.120.0070.00916.71
7.4.110.0100.00716.61
7.4.100.0030.01416.47
7.4.90.0040.01516.61
7.4.80.0060.01219.39
7.4.70.0110.00516.73
7.4.60.0000.01716.45
7.4.50.0030.00616.50
7.4.40.0110.00716.57
7.4.30.0090.00616.71
7.4.00.0070.01015.07
7.3.330.0000.00713.09
7.3.320.0030.00313.23
7.3.310.0040.00416.32
7.3.300.0030.00316.34
7.3.290.0060.01016.25
7.3.280.0100.00816.31
7.3.270.0220.00017.40
7.3.260.0100.01016.66
7.3.250.0110.01016.43
7.3.240.0200.00316.52
7.3.230.0050.01116.64
7.3.210.0100.00716.63
7.3.200.0140.00716.32
7.3.190.0120.00916.38
7.3.180.0130.00316.18
7.3.170.0080.00816.41
7.3.160.0090.00616.38
7.3.120.0050.01214.77
7.3.110.0060.00615.11
7.3.100.0090.00614.98
7.3.90.0090.00914.78
7.3.80.0150.00014.61
7.3.70.0070.00414.97
7.3.60.0110.00414.75
7.3.50.0040.01114.73
7.3.40.0100.00314.97
7.3.30.0040.01214.99
7.3.20.0090.00016.66
7.3.10.0020.01316.59
7.3.00.0040.00716.70
7.2.330.0110.00716.80
7.2.320.0090.00916.67
7.2.310.0070.01016.55
7.2.300.0060.01516.64
7.2.290.0090.00916.58
7.2.250.0070.01015.28
7.2.240.0030.01314.98
7.2.230.0000.01715.30
7.2.220.0000.01115.09
7.2.210.0090.00615.09
7.2.200.0040.00715.00
7.2.190.0040.01115.23
7.2.180.0040.01514.95
7.2.170.0000.00915.02
7.2.130.0090.00916.51
7.2.120.0100.00316.60
7.2.110.0120.00316.41
7.2.100.0080.00316.88
7.2.90.0040.00716.80
7.2.80.0000.01316.90
7.2.70.0070.00716.95
7.2.60.0100.00616.91
7.2.50.0030.00917.07
7.2.40.0070.00316.61
7.2.30.0000.01116.86
7.2.20.0110.00016.73
7.2.10.0040.01216.58
7.2.00.0060.00818.26
7.1.330.0040.01415.67
7.1.320.0040.00815.87
7.1.310.0150.00015.85
7.1.300.0000.01315.90
7.1.290.0080.00315.63
7.1.280.0040.01115.85
7.1.270.0060.00916.03
7.1.260.0060.00316.03
7.1.250.0090.00015.88
7.1.100.0040.00718.40
7.1.70.0000.00717.27
7.1.60.0000.02419.70
7.1.50.0100.01417.18
7.1.00.0030.07722.29
7.0.200.0200.00816.40
7.0.140.0030.07321.95
7.0.60.0070.07019.97
7.0.50.0070.08017.71
7.0.40.0200.07720.29
7.0.30.0230.08020.02
7.0.20.0170.05020.19
7.0.10.0170.07020.14
7.0.00.0030.04320.10
5.6.210.0100.07720.74
5.6.200.0100.04318.18
5.6.190.0130.07720.67
5.6.180.0330.04320.64
5.6.170.0270.08020.48
5.6.160.0100.05020.32
5.6.150.0070.05318.21
5.6.140.0070.07018.20
5.6.130.0000.07718.10
5.6.120.0130.08020.73
5.6.110.0070.08020.88
5.6.100.0070.03721.00
5.6.90.0200.07021.09
5.6.80.0130.06720.39
5.5.350.0170.08020.43
5.5.340.0000.06017.86
5.5.330.0070.04320.57
5.5.320.0230.05020.25
5.5.310.0170.08320.13
5.5.300.0130.06317.98
5.5.290.0130.04717.95
5.5.280.0070.07720.77
5.5.270.0070.08720.84
5.5.260.0130.06720.72
5.5.250.0230.07320.68
5.5.240.0270.07320.03
5.4.450.0500.04726.89
5.4.440.1200.05019.13
5.4.430.0270.04726.13
5.4.420.0230.04726.13
5.4.410.0130.03726.12
5.4.400.0300.03326.11
5.4.390.0370.04026.10
5.4.380.0170.05318.70
5.4.370.0170.05018.49
5.4.360.0230.04018.74
5.4.350.0100.06018.58
5.4.340.0030.06018.45
5.4.320.0050.03712.45
5.4.310.0030.04012.45
5.4.300.0080.05512.45
5.4.290.0130.05312.45
5.4.280.0090.04012.34
5.4.270.0090.04112.34
5.4.260.0120.04212.35
5.4.250.0080.04212.35
5.4.240.0080.04112.34
5.4.230.0060.04512.34
5.4.220.0060.04512.34
5.4.210.0100.03812.34
5.4.200.0130.03912.34
5.4.190.0140.04212.34
5.4.180.0110.04912.34
5.4.170.0110.04712.34
5.4.160.0110.04512.34
5.4.150.0080.05112.34
5.4.140.0170.04612.02
5.4.130.0070.05012.01
5.4.120.0100.04711.97
5.4.110.0060.05711.96
5.4.100.0130.04411.96
5.4.90.0100.05011.96
5.4.80.0130.04611.96
5.4.70.0070.04911.96
5.4.60.0100.04811.96
5.4.50.0130.04511.96
5.4.40.0080.05011.95
5.4.30.0130.04211.95
5.4.20.0090.04711.95
5.4.10.0090.05011.94
5.4.00.0120.05511.43
5.3.290.0070.03912.80
5.3.280.0070.05612.71
5.3.270.0130.05412.73
5.3.260.0160.04812.72
5.3.250.0090.05512.72
5.3.240.0170.04612.72
5.3.230.0210.08612.70
5.3.220.0110.05212.68
5.3.210.0120.05412.68
5.3.200.0090.05512.68
5.3.190.0110.05512.68
5.3.180.0100.05312.68
5.3.170.0110.05012.67
5.3.160.0080.05512.67
5.3.150.0110.05112.67
5.3.140.0100.05112.66
5.3.130.0040.06112.66
5.3.120.0100.05212.66
5.3.110.0150.04912.66
5.3.100.0090.05412.12
5.3.90.0110.06412.08
5.3.80.0090.05112.08
5.3.70.0080.04812.07
5.3.60.0050.04512.07
5.3.50.0070.04112.00
5.3.40.0090.04512.00
5.3.30.0080.05111.95
5.3.20.0100.04711.72
5.3.10.0130.03911.69
5.3.00.0050.04911.68
5.2.170.0070.0389.18
5.2.160.0010.0389.18
5.2.150.0070.0329.18
5.2.140.0070.0359.18
5.2.130.0100.0339.13
5.2.120.0050.0359.14
5.2.110.0070.0369.14
5.2.100.0090.0319.14
5.2.90.0030.0349.13
5.2.80.0100.0409.14
5.2.70.0060.0389.13
5.2.60.0090.0459.09
5.2.50.0080.0399.06
5.2.40.0080.0369.04
5.2.30.0080.0409.01
5.2.20.0060.0429.01
5.2.10.0070.0428.92
5.2.00.0110.0378.78
5.1.60.0070.0348.06
5.1.50.0070.0338.05
5.1.40.0100.0338.04
5.1.30.0080.0368.39
5.1.20.0080.0368.41
5.1.10.0080.0358.13
5.1.00.0070.0358.13
5.0.50.0060.0286.61
5.0.40.0100.0226.47
5.0.30.0090.0376.29
5.0.20.0070.0246.26
5.0.10.0040.0296.23
5.0.00.0030.0396.23
4.4.90.0040.0204.77
4.4.80.0040.0204.76
4.4.70.0030.0224.75
4.4.60.0090.0244.76
4.4.50.0070.0204.77
4.4.40.0040.0344.71
4.4.30.0030.0214.76
4.4.20.0060.0214.85
4.4.10.0020.0234.85
4.4.00.0050.0314.76
4.3.110.0020.0244.67
4.3.100.0080.0194.67
4.3.90.0050.0214.64
4.3.80.0030.0344.59
4.3.70.0050.0204.63
4.3.60.0040.0214.63
4.3.50.0100.0164.63
4.3.40.0090.0284.53
4.3.30.0080.0183.28
4.3.20.0070.0193.25
4.3.10.0060.0193.22
4.3.00.0200.02314.84

preferences:
42.91 ms | 401 KiB | 5 Q