3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_try_author = 'author@democracynow.org (author)'; $_try_author = trim(preg_replace('#[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,6}#i', '', $_try_author)); $_try_author = preg_replace('#[<()>\[\]]#','',$_try_author); echo $_try_author;

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.0000.01616.75
8.3.50.0080.01023.07
8.3.40.0120.00318.96
8.3.30.0070.00719.14
8.3.20.0080.00020.33
8.3.10.0000.00823.71
8.3.00.0090.00017.75
8.2.180.0180.00416.63
8.2.170.0140.00022.96
8.2.160.0100.00320.16
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0130.00626.16
8.2.120.0040.00421.19
8.2.110.0060.00322.28
8.2.100.0060.00617.91
8.2.90.0000.00919.22
8.2.80.0050.00517.97
8.2.70.0000.00917.75
8.2.60.0040.00418.05
8.2.50.0030.00618.07
8.2.40.0000.00718.22
8.2.30.0050.00217.96
8.2.20.0030.00517.77
8.2.10.0030.00518.15
8.2.00.0060.00317.82
8.1.280.0150.00325.92
8.1.270.0060.00324.01
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0090.00023.77
8.1.230.0090.00319.09
8.1.220.0000.00817.79
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0000.00818.69
8.1.160.0040.00421.97
8.1.150.0040.00418.86
8.1.140.0050.00217.45
8.1.130.0000.00717.81
8.1.120.0000.00717.54
8.1.110.0040.00417.60
8.1.100.0040.00417.53
8.1.90.0080.00017.57
8.1.80.0070.00017.50
8.1.70.0030.00317.50
8.1.60.0060.00317.67
8.1.50.0030.00617.57
8.1.40.0040.00417.49
8.1.30.0040.00417.80
8.1.20.0080.00017.65
8.1.10.0040.00417.64
8.1.00.0080.00017.45
8.0.300.0040.00418.77
8.0.290.0000.00816.88
8.0.280.0000.00718.34
8.0.270.0040.00417.28
8.0.260.0000.00617.34
8.0.250.0030.00316.98
8.0.240.0020.01017.08
8.0.230.0030.00716.90
8.0.220.0030.00316.98
8.0.210.0000.00817.03
8.0.200.0070.00017.02
8.0.190.0030.00317.07
8.0.180.0040.00416.90
8.0.170.0040.00416.98
8.0.160.0000.00716.98
8.0.150.0030.00316.89
8.0.140.0030.00616.97
8.0.130.0060.00013.41
8.0.120.0040.00416.90
8.0.110.0040.00416.92
8.0.100.0040.00416.89
8.0.90.0000.00717.02
8.0.80.0110.00416.95
8.0.70.0000.00816.86
8.0.60.0090.00016.94
8.0.50.0040.00417.04
8.0.30.0100.01017.12
8.0.20.0070.01117.40
8.0.10.0000.00817.13
8.0.00.0100.01016.89
7.4.330.0070.00015.00
7.4.320.0060.00016.75
7.4.300.0060.00016.70
7.4.290.0040.00416.63
7.4.280.0040.00416.54
7.4.270.0050.00316.60
7.4.260.0050.00316.63
7.4.250.0000.00816.64
7.4.240.0040.00316.72
7.4.230.0030.00316.78
7.4.220.0120.00616.67
7.4.210.0100.01016.85
7.4.200.0030.00316.59
7.4.160.0070.01016.66
7.4.150.0150.00317.40
7.4.140.0060.01117.86
7.4.130.0110.00716.79
7.4.120.0110.00616.59
7.4.110.0060.00916.54
7.4.100.0120.00616.57
7.4.90.0100.00916.37
7.4.80.0000.01819.39
7.4.70.0140.00616.61
7.4.60.0030.01416.58
7.4.50.0040.00416.68
7.4.40.0120.00916.72
7.4.30.0110.00516.75
7.4.00.0070.00815.07
7.3.330.0000.00613.24
7.3.320.0000.00713.25
7.3.310.0030.00316.20
7.3.300.0000.00616.25
7.3.290.0120.00616.34
7.3.280.0070.00816.30
7.3.270.0150.00317.40
7.3.260.0100.00716.44
7.3.240.0190.00016.72
7.3.230.0110.00616.39
7.3.210.0100.01016.21
7.3.200.0060.01019.39
7.3.190.0030.01316.51
7.3.180.0130.00316.50
7.3.170.0080.00816.62
7.3.160.0120.00816.28
7.3.120.0030.01614.69
7.3.110.0030.01415.20
7.3.100.0040.01214.98
7.3.90.0100.00014.79
7.3.80.0030.00914.91
7.3.70.0030.01414.64
7.3.60.0000.01714.83
7.3.50.0030.01014.80
7.3.40.0090.00314.79
7.3.30.0090.00314.88
7.3.20.0030.01016.60
7.3.10.0100.00316.66
7.3.00.0000.01116.89
7.2.330.0060.01216.71
7.2.320.0030.01716.83
7.2.310.0100.00716.90
7.2.300.0130.00316.85
7.2.290.0150.00716.75
7.2.250.0080.01115.14
7.2.240.0030.01415.17
7.2.230.0030.01414.82
7.2.220.0130.00314.82
7.2.210.0090.00315.09
7.2.200.0030.01015.11
7.2.190.0060.00615.06
7.2.180.0000.01715.16
7.2.170.0100.00315.04
7.2.00.0000.01119.46
7.1.330.0000.01415.97
7.1.320.0000.01115.77
7.1.310.0030.00915.96
7.1.300.0120.00316.08
7.1.290.0060.00615.91
7.1.280.0100.00315.89
7.1.270.0000.01515.95
7.1.260.0070.01015.85
7.1.100.0030.00718.42
7.1.70.0070.00417.52
7.1.60.0030.02119.40
7.1.50.0100.01016.98
7.1.00.0070.07322.38
7.0.200.0040.00416.71
7.0.140.0000.07721.95
7.0.60.0070.05320.01
7.0.50.0270.06017.89
7.0.40.0100.08020.08
7.0.30.0530.06020.14
7.0.20.0330.07020.05
7.0.10.0070.08720.02
7.0.00.0200.07320.14
5.6.280.0030.07321.09
5.6.210.0100.07020.64
5.6.200.0130.07018.17
5.6.190.0070.08320.40
5.6.180.0230.03720.57
5.6.170.0270.04320.47
5.6.160.0130.07720.33
5.6.150.0070.05018.12
5.6.140.0000.08318.18
5.6.130.0000.04318.12
5.6.120.0070.05020.89
5.6.110.0100.08021.02
5.6.100.0030.06020.96
5.6.90.0130.08021.08
5.6.80.0130.07020.37
5.5.350.0300.07320.39
5.5.340.0070.07717.99
5.5.330.0000.04320.43
5.5.320.0430.06720.27
5.5.310.0230.04320.29
5.5.300.0030.08017.92
5.5.290.0070.08317.92
5.5.280.0000.08720.79
5.5.270.0070.05320.67
5.5.260.0070.09020.86
5.5.250.0030.04720.69
5.5.240.0230.07320.12
5.4.450.0270.04319.58
5.4.440.0330.04719.10
5.4.430.0670.04019.48
5.4.420.0430.03319.25
5.4.410.0330.03319.45
5.4.400.0200.04019.09
5.4.390.0130.05019.06
5.4.380.0230.06018.75
5.4.370.0330.05318.65
5.4.360.0430.06018.68
5.4.350.0470.05318.57
5.4.340.0300.05018.52
5.4.320.0090.04512.45
5.4.310.0050.03812.45
5.4.300.0060.03612.45
5.4.290.0050.04212.45
5.4.280.0040.03712.34
5.4.270.0050.03712.34
5.4.260.0090.03612.34
5.4.250.0060.03712.35
5.4.240.0040.03812.34
5.4.230.0030.04012.34
5.4.220.0050.03712.34
5.4.210.0090.03412.34
5.4.200.0050.04012.34
5.4.190.0060.03612.34
5.4.180.0070.04112.34
5.4.170.0050.03712.34
5.4.160.0090.03312.34
5.4.150.0070.03612.34
5.4.140.0040.03912.02
5.4.130.0070.04812.01
5.4.120.0070.03411.96
5.4.110.0030.03711.96
5.4.100.0080.03811.96
5.4.90.0060.03811.97
5.4.80.0090.03311.96
5.4.70.0090.03111.96
5.4.60.0040.03611.96
5.4.50.0030.03711.96
5.4.40.0060.03411.95
5.4.30.0110.04111.95
5.4.20.0080.04511.95
5.4.10.0090.04011.95
5.4.00.0050.04211.43
5.3.290.0080.05312.80
5.3.280.0130.03712.71
5.3.270.0110.04612.73
5.3.260.0050.04912.72
5.3.250.0070.03912.72
5.3.240.0120.03812.72
5.3.230.0090.03912.71
5.3.220.0070.03512.68
5.3.210.0110.04412.68
5.3.200.0090.03812.68
5.3.190.0050.04512.68
5.3.180.0050.03912.67
5.3.170.0050.03812.67
5.3.160.0040.03712.68
5.3.150.0080.03412.68
5.3.140.0080.04212.66
5.3.130.0100.03412.66
5.3.120.0070.04212.65
5.3.110.0090.04512.66
5.3.100.0080.04512.12
5.3.90.0070.04212.08
5.3.80.0070.05212.08
5.3.70.0080.04912.08
5.3.60.0070.03612.06
5.3.50.0040.03712.00
5.3.40.0060.03612.00
5.3.30.0070.03411.96
5.3.20.0080.03311.73
5.3.10.0080.03211.70
5.3.00.0080.03511.68
5.2.170.0050.0309.19
5.2.160.0060.0289.19
5.2.150.0060.0299.19
5.2.140.0020.0339.19
5.2.130.0010.0339.15
5.2.120.0000.0339.14
5.2.110.0060.0319.15
5.2.100.0020.0339.15
5.2.90.0050.0299.15
5.2.80.0040.0299.14
5.2.70.0070.0299.14
5.2.60.0060.0329.10
5.2.50.0020.0329.07
5.2.40.0070.0309.05
5.2.30.0040.0309.03
5.2.20.0060.0289.01
5.2.10.0040.0388.92
5.2.00.0070.0318.78
5.1.60.0030.0248.06
5.1.50.0050.0238.05
5.1.40.0100.0448.04
5.1.30.0070.0338.39
5.1.20.0030.0348.41
5.1.10.0030.0268.13
5.1.00.0050.0248.14
5.0.50.0030.0206.62
5.0.40.0050.0176.48
5.0.30.0040.0306.29
5.0.20.0020.0216.26
5.0.10.0040.0196.24
5.0.00.0050.0306.23
4.4.90.0020.0164.78
4.4.80.0050.0134.76
4.4.70.0040.0144.75
4.4.60.0020.0164.75
4.4.50.0060.0154.77
4.4.40.0040.0314.71
4.4.30.0040.0214.76
4.4.20.0030.0264.85
4.4.10.0030.0154.84
4.4.00.0040.0234.76
4.3.110.0050.0134.67
4.3.100.0010.0174.66
4.3.90.0030.0144.63
4.3.80.0010.0254.59
4.3.70.0070.0114.63
4.3.60.0050.0164.63
4.3.50.0040.0144.63
4.3.40.0030.0244.54
4.3.30.0040.0173.29
4.3.20.0050.0173.26
4.3.10.0020.0153.22
4.3.00.0030.01315.97

preferences:
45.97 ms | 401 KiB | 5 Q