3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = '#<tag foo="bar">([\w\s]+)\s?</tag>#'; echo preg_replace($regex, '\1', '<tag foo="bar">Jacopo Nuzzi</tag>'). " $\n"; echo preg_replace($regex, '\1', '<tag foo="bar">Jacopo Nuzzi </tag>'). " $\n"; echo preg_replace($regex, '\1', '<tag foo="bar">Jacopo </tag>'). " $\n"; echo preg_replace($regex, '\1', '<tag foo="bar">Jacopo</tag>'). " $\n";

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.0070.00716.75
8.3.50.0070.00922.05
8.3.40.0070.00718.96
8.3.30.0110.00419.09
8.3.20.0070.00020.34
8.3.10.0000.00823.64
8.3.00.0040.00420.82
8.2.180.0100.00616.75
8.2.170.0110.00322.96
8.2.160.0140.00020.35
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.38
8.2.110.0080.00022.44
8.2.100.0070.00420.57
8.2.90.0050.00319.23
8.2.80.0050.00317.97
8.2.70.0040.00417.88
8.2.60.0060.00317.80
8.2.50.0040.00418.07
8.2.40.0000.00819.89
8.2.30.0070.00018.14
8.2.20.0040.00417.88
8.2.10.0040.00418.02
8.2.00.0040.00417.82
8.1.280.0120.00625.92
8.1.270.0030.00623.86
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00722.04
8.1.230.0070.00418.97
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0040.00417.25
8.1.180.0080.00018.10
8.1.170.0050.00318.59
8.1.160.0000.00722.03
8.1.150.0000.00818.79
8.1.140.0070.00017.47
8.1.130.0030.00319.70
8.1.120.0070.00017.48
8.1.110.0090.00317.53
8.1.100.0000.00717.59
8.1.90.0040.00417.59
8.1.80.0070.00017.59
8.1.70.0060.00317.43
8.1.60.0060.00617.70
8.1.50.0090.00017.66
8.1.40.0040.00417.68
8.1.30.0060.00317.79
8.1.20.0080.00017.73
8.1.10.0050.00517.55
8.1.00.0000.00817.64
8.0.300.0070.00018.77
8.0.290.0020.00516.88
8.0.280.0070.00018.46
8.0.270.0040.00417.24
8.0.260.0000.00617.22
8.0.250.0000.00717.12
8.0.240.0000.00717.01
8.0.230.0030.00316.96
8.0.220.0040.00417.01
8.0.210.0070.00016.93
8.0.200.0000.00617.08
8.0.190.0040.00417.12
8.0.180.0030.00617.05
8.0.170.0000.00817.09
8.0.160.0040.00417.02
8.0.150.0040.00416.90
8.0.140.0030.00717.06
8.0.130.0030.00313.34
8.0.120.0040.00417.04
8.0.110.0040.00416.94
8.0.100.0050.00317.01
8.0.90.0000.00817.09
8.0.80.0140.00317.10
8.0.70.0040.00417.04
8.0.60.0050.00217.00
8.0.50.0000.00716.95
8.0.30.0060.01317.26
8.0.20.0150.00517.40
8.0.10.0040.00417.11
8.0.00.0100.00916.78
7.4.330.0020.00215.00
7.4.320.0000.00616.75
7.4.300.0030.00316.60
7.4.290.0000.00716.67
7.4.280.0040.00416.73
7.4.270.0040.00416.75
7.4.260.0080.00016.62
7.4.250.0000.00816.70
7.4.240.0020.00616.67
7.4.230.0070.00016.82
7.4.220.0090.00916.79
7.4.210.0110.01016.82
7.4.200.0030.00316.68
7.4.160.0080.00816.58
7.4.150.0100.00717.40
7.4.140.0100.00817.86
7.4.130.0100.00916.53
7.4.120.0120.00416.72
7.4.110.0100.01316.56
7.4.100.0120.00916.63
7.4.90.0190.00016.53
7.4.80.0110.00719.39
7.4.70.0110.00516.56
7.4.60.0130.00716.64
7.4.50.0030.00316.61
7.4.40.0090.00616.61
7.4.30.0100.00716.85
7.4.00.0030.01015.20
7.3.330.0030.00313.28
7.3.320.0000.00513.05
7.3.310.0030.00316.28
7.3.300.0070.00016.38
7.3.290.0090.00616.45
7.3.280.0110.00616.36
7.3.270.0140.01017.40
7.3.260.0110.00516.64
7.3.250.0140.00416.54
7.3.240.0070.01016.61
7.3.230.0100.00716.80
7.3.210.0140.00916.35
7.3.200.0130.00819.39
7.3.190.0170.01016.27
7.3.180.0130.00916.57
7.3.170.0130.00316.60
7.3.160.0040.01316.58
7.3.120.0110.00614.70
7.3.110.0110.00314.99
7.3.100.0000.01515.27
7.3.90.0060.00914.66
7.3.80.0080.00314.68
7.3.70.0030.00614.84
7.3.60.0030.01214.93
7.3.50.0080.00814.68
7.3.40.0110.00014.42
7.3.30.0060.00314.82
7.3.20.0030.00516.69
7.3.10.0070.00716.71
7.3.00.0030.00616.61
7.2.330.0070.01116.64
7.2.320.0120.00616.74
7.2.310.0040.01216.77
7.2.300.0060.01016.75
7.2.290.0090.00916.70
7.2.240.0070.01014.91
7.2.230.0060.00915.34
7.2.220.0160.00015.23
7.2.210.0030.01214.92
7.2.200.0070.00715.14
7.2.190.0090.00615.05
7.2.180.0060.00915.17
7.2.170.0070.00715.13
7.2.160.0060.00315.07
7.2.150.0030.01216.88
7.2.140.0070.01017.00
7.2.130.0000.00916.87
7.2.120.0030.01216.86
7.2.110.0030.01016.89
7.2.100.0070.01017.09
7.2.90.0080.00816.93
7.2.80.0030.01416.74
7.2.70.0040.01117.30
7.2.60.0030.00617.04
7.2.50.0090.00317.01
7.2.40.0030.00716.99
7.2.30.0150.00017.03
7.2.20.0030.01317.13
7.2.10.0040.01116.73
7.2.00.0050.00818.28
7.1.330.0040.01415.69
7.1.320.0070.00315.91
7.1.310.0070.00715.65
7.1.300.0030.00715.88
7.1.290.0040.00416.12
7.1.280.0070.00415.89
7.1.270.0070.00716.06
7.1.260.0030.00615.80
7.1.250.0000.00815.84
7.1.100.0120.00318.39
7.1.70.0070.00317.40
7.1.60.0000.02419.70
7.1.50.0140.01017.05
7.1.00.0070.07322.42
7.0.200.0100.00016.77
7.0.140.0030.07021.97
7.0.100.0270.03719.97
7.0.90.0070.04019.92
7.0.80.0170.03020.00
7.0.70.0070.03319.96
7.0.60.0070.04719.93
7.0.50.0100.04020.31
7.0.40.0130.06020.04
7.0.30.0070.04020.05
7.0.20.0070.03720.13
7.0.10.0030.04320.05
7.0.00.0000.04720.17
5.6.280.0070.07021.10
5.6.250.0030.09020.57
5.6.240.0000.05320.63
5.6.230.0100.03720.67
5.6.220.0130.02720.68
5.6.210.0070.05720.74
5.6.200.0070.04021.09
5.6.190.0030.04021.10
5.6.180.0130.05320.93
5.6.170.0000.04021.13
5.6.160.0000.04320.95
5.6.150.0100.03320.93
5.6.140.0100.03321.16
5.6.130.0070.05021.16
5.6.120.0200.07721.01
5.6.110.0070.08321.03
5.6.100.0230.06020.91
5.6.90.0070.05020.91
5.6.80.0070.08020.34
5.6.70.0030.08320.54
5.6.60.0100.08020.39
5.6.50.0100.07320.43
5.6.40.0070.08020.38
5.6.30.0130.06720.34
5.6.20.0070.08020.37
5.6.10.0030.07320.46
5.6.00.0030.06020.44
5.5.380.0030.04720.57
5.5.370.0000.06020.44
5.5.360.0000.04720.35
5.5.350.0000.04320.46
5.5.340.0000.04020.91
5.5.330.0000.04020.80
5.5.320.0100.03720.88
5.5.310.0070.05020.77
5.5.300.0070.04020.75
5.5.290.0070.06320.82
5.5.280.0070.04020.91
5.5.270.0100.04020.76
5.5.260.0030.09020.86
5.5.250.0070.08320.68
5.5.240.0100.05020.30
5.5.230.0100.07720.11
5.5.220.0070.08020.01
5.5.210.0100.04320.16
5.5.200.0000.05020.18
5.5.190.0230.06320.20
5.5.180.0100.08020.25
5.5.160.0130.05320.20
5.5.150.0100.07720.18
5.5.140.0070.04320.23
5.5.130.0100.07320.20
5.5.120.0070.06320.21
5.5.110.0070.04320.20
5.5.100.0130.07320.15
5.5.90.0200.06319.96
5.5.80.0130.07020.14
5.5.70.0070.06320.15
5.5.60.0030.07320.02
5.5.50.0170.08020.05
5.5.40.0100.08019.98
5.5.30.0030.05720.05
5.5.20.0130.04020.10
5.5.10.0030.05020.02
5.5.00.0170.04720.13
5.4.450.0030.06319.13
5.4.440.0070.08019.42
5.4.430.0100.06319.30
5.4.420.0000.08719.10
5.4.410.0100.05319.21
5.4.400.0070.06718.98
5.4.390.0030.06719.03
5.4.380.0070.07718.96
5.4.370.0130.07318.95
5.4.360.0100.07318.84
5.4.350.0130.07718.81
5.4.340.0070.05018.90
5.4.320.0130.03018.81
5.4.310.0070.07718.91
5.4.300.0070.04018.95
5.4.290.0130.03719.23
5.4.280.0130.07019.05
5.4.270.0100.07319.11
5.4.260.0070.07719.05
5.4.250.0030.07718.80
5.4.240.0070.06319.14
5.4.230.0200.06019.04
5.4.220.0030.06019.05
5.4.210.0130.07319.02
5.4.200.0130.03719.09
5.4.190.0100.07019.05
5.4.180.0070.07718.77
5.4.170.0130.07318.91
5.4.160.0070.06018.92
5.4.150.0000.08019.00
5.4.140.0130.04316.13
5.4.130.0130.06316.27
5.4.120.0070.07716.36
5.4.110.0070.07316.26
5.4.100.0100.07016.29
5.4.90.0100.07316.42
5.4.80.0000.07316.19
5.4.70.0030.03716.41
5.4.60.0030.07016.19
5.4.50.0030.03716.38
5.4.40.0100.07016.39
5.4.30.0130.06316.18
5.4.20.0070.07716.34
5.4.10.0130.06016.34
5.4.00.0100.07315.80
5.3.290.0000.06714.64
5.3.280.0030.08014.58
5.3.270.0030.08014.42
5.3.260.0030.08014.59
5.3.250.0100.07014.57
5.3.240.0000.07714.57
5.3.230.0100.08014.60
5.3.220.0070.08014.52
5.3.210.0070.06714.52
5.3.200.0130.07014.53
5.3.190.0070.07314.57
5.3.180.0130.03714.51
5.3.170.0000.08714.52
5.3.160.0070.05014.52
5.3.150.0000.04014.54
5.3.140.0130.07314.38
5.3.130.0070.07714.38
5.3.120.0070.08314.50
5.3.110.0100.07014.54
5.3.100.0070.07313.97
5.3.90.0170.06713.87
5.3.80.0100.06014.00
5.3.70.0070.07713.97
5.3.60.0030.07313.98
5.3.50.0130.04713.80
5.3.40.0030.04313.94
5.3.30.0070.03013.89
5.3.20.0070.07713.63
5.3.10.0030.07713.64
5.3.00.0100.04313.62
5.2.170.0070.03311.15
5.2.160.0070.03011.10
5.2.150.0030.03311.18
5.2.140.0030.05711.13
5.2.130.0100.06011.16
5.2.120.0000.07010.89
5.2.110.0000.05711.09
5.2.100.0300.01311.10
5.2.90.0100.06010.95
5.2.80.0030.07011.09
5.2.70.0030.06311.13
5.2.60.0030.05010.84
5.2.50.0100.03310.88
5.2.40.0000.05710.85
5.2.30.0030.04011.04
5.2.20.0030.07010.95
5.2.10.0070.05310.82
5.2.00.0070.05710.68
5.1.60.0000.04310.48
5.1.50.0000.02710.48
5.1.40.0100.04710.48
5.1.30.0000.03710.48
5.1.20.0030.05010.48
5.1.10.0030.06010.48
5.1.00.0000.05010.48
5.0.50.0000.05010.48
5.0.40.0000.03010.48
5.0.30.0030.05710.48
5.0.20.0030.04710.48
5.0.10.0030.04710.48
5.0.00.0000.05310.48
4.4.90.0000.03710.48
4.4.80.0130.02310.48
4.4.70.0000.02710.48
4.4.60.0000.02010.48
4.4.50.0030.02710.48
4.4.40.0030.03010.48
4.4.30.0070.01710.48
4.4.20.0000.02310.48
4.4.10.0030.03310.48
4.4.00.0030.05310.48
4.3.110.0000.03710.48
4.3.100.0030.03310.48
4.3.90.0000.01710.48
4.3.80.0000.05310.48
4.3.70.0030.04310.48
4.3.60.0000.03310.48
4.3.50.0030.02710.48
4.3.40.0000.04310.48
4.3.30.0000.01710.48
4.3.20.0030.03310.48
4.3.10.0000.02710.48
4.3.00.0000.02010.48

preferences:
41.94 ms | 401 KiB | 5 Q