3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_try_author = 'author@democracynow.org (author-two)'; $_try_author = trim(preg_replace('#[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,6}#i', '', $_try_author)); $_try_author = trim(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.0070.01418.55
8.3.50.0110.00723.00
8.3.40.0070.01118.92
8.3.30.0140.00019.09
8.3.20.0070.00020.20
8.3.10.0050.00323.49
8.3.00.0080.00017.59
8.2.180.0130.00316.36
8.2.170.0090.00622.96
8.2.160.0100.00320.39
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0070.01026.16
8.2.120.0090.00021.07
8.2.110.0030.00722.25
8.2.100.0070.00418.16
8.2.90.0030.00519.26
8.2.80.0060.00517.97
8.2.70.0050.00317.75
8.2.60.0040.00417.93
8.2.50.0030.00618.07
8.2.40.0030.00618.22
8.2.30.0080.00017.96
8.2.20.0040.00417.82
8.2.10.0040.00418.07
8.2.00.0040.00417.83
8.1.280.0120.00325.92
8.1.270.0030.00623.95
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0090.00923.84
8.1.230.0060.00619.15
8.1.220.0000.00917.74
8.1.210.0090.00018.77
8.1.200.0030.00617.22
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0000.00818.69
8.1.160.0040.00421.93
8.1.150.0000.00718.81
8.1.140.0000.00717.54
8.1.130.0030.00317.85
8.1.120.0030.00617.46
8.1.110.0070.00017.55
8.1.100.0070.00017.45
8.1.90.0040.00417.54
8.1.80.0080.00017.53
8.1.70.0030.00317.49
8.1.60.0030.00517.67
8.1.50.0000.00817.52
8.1.40.0040.00417.64
8.1.30.0050.00317.66
8.1.20.0030.00517.59
8.1.10.0030.00617.68
8.1.00.0070.00017.47
8.0.300.0040.00418.77
8.0.290.0000.00817.00
8.0.280.0000.00718.37
8.0.270.0070.00017.19
8.0.260.0000.00617.23
8.0.250.0030.00317.09
8.0.240.0070.00317.08
8.0.230.0060.00317.00
8.0.220.0030.00417.02
8.0.210.0040.00417.03
8.0.200.0030.00317.01
8.0.190.0040.00417.08
8.0.180.0080.00016.93
8.0.170.0000.00716.93
8.0.160.0030.00516.86
8.0.150.0050.00217.00
8.0.140.0000.01016.84
8.0.130.0030.00313.44
8.0.120.0000.00716.83
8.0.110.0040.00417.00
8.0.100.0000.00816.92
8.0.90.0040.00416.95
8.0.80.0100.00617.00
8.0.70.0050.00317.04
8.0.60.0050.00516.91
8.0.50.0000.00716.99
8.0.30.0120.00817.10
8.0.20.0090.01117.44
8.0.10.0050.00317.08
8.0.00.0050.01416.74
7.4.330.0030.00315.00
7.4.320.0030.00316.74
7.4.300.0030.00316.70
7.4.290.0000.00716.77
7.4.280.0040.00416.75
7.4.270.0000.00716.70
7.4.260.0000.00716.75
7.4.250.0000.00716.69
7.4.240.0020.00516.75
7.4.230.0030.00316.62
7.4.220.0110.00716.78
7.4.210.0080.00516.78
7.4.200.0030.00616.73
7.4.160.0070.01116.66
7.4.150.0070.01017.40
7.4.140.0150.00517.86
7.4.130.0090.00916.73
7.4.120.0050.01216.64
7.4.110.0100.00716.53
7.4.100.0140.00716.88
7.4.90.0060.01216.50
7.4.80.0150.00619.39
7.4.70.0100.00716.39
7.4.60.0170.00316.59
7.4.50.0000.00616.38
7.4.40.0100.00616.37
7.4.30.0060.00916.65
7.4.00.0060.01215.21
7.3.330.0030.00313.18
7.3.320.0000.00713.09
7.3.310.0040.00416.38
7.3.300.0030.00316.36
7.3.290.0060.01316.32
7.3.280.0070.00916.38
7.3.270.0140.00317.40
7.3.260.0170.00016.52
7.3.240.0030.01316.71
7.3.230.0090.00916.46
7.3.210.0100.00716.36
7.3.200.0060.00919.39
7.3.190.0110.00516.81
7.3.180.0080.00816.40
7.3.170.0110.00616.64
7.3.160.0120.00316.59
7.3.10.0100.00316.80
7.3.00.0090.00616.34
7.2.330.0040.01516.84
7.2.320.0110.01116.76
7.2.310.0110.00516.73
7.2.300.0110.00616.66
7.2.290.0060.01116.67
7.2.130.0110.00016.74
7.2.120.0040.01116.72
7.2.110.0080.00817.07
7.2.100.0070.00716.62
7.2.90.0060.00917.09
7.2.80.0060.00616.95
7.2.70.0090.00617.09
7.2.60.0090.00617.10
7.2.50.0040.00816.89
7.2.40.0060.00917.05
7.2.30.0000.01117.19
7.2.20.0060.00616.70
7.2.10.0060.00917.14
7.2.00.0020.01218.39
7.1.250.0120.00015.82
7.1.100.0000.00918.32
7.1.70.0050.00317.07
7.1.60.0070.01619.40
7.1.50.0180.00017.21
7.1.00.0070.07322.55
7.0.200.0000.00716.72
7.0.140.0070.06721.95
7.0.60.0200.08019.96
7.0.50.0100.05317.84
7.0.40.0100.07320.21
7.0.30.0600.05020.11
7.0.20.0270.05020.11
7.0.10.0230.07020.18
7.0.00.0070.07020.21
5.6.280.0030.07320.92
5.6.210.0100.08020.66
5.6.200.0030.06318.12
5.6.190.0100.08320.67
5.6.180.0270.07020.42
5.6.170.0100.05320.45
5.6.160.0030.04720.41
5.6.150.0000.04718.18
5.6.140.0070.08318.18
5.6.130.0100.08018.18
5.6.120.0070.04321.11
5.6.110.0000.09321.04
5.6.100.0100.07720.99
5.6.90.0070.08320.92
5.6.80.0030.04020.50
5.5.350.0330.07020.52
5.5.340.0000.06317.91
5.5.330.0100.04020.16
5.5.320.0270.05320.34
5.5.310.0330.05720.23
5.5.300.0030.07317.98
5.5.290.0070.07717.92
5.5.280.0130.07320.68
5.5.270.0100.08020.92
5.5.260.0030.08720.72
5.5.250.0130.07320.59
5.5.240.3030.04020.36
5.4.450.0270.04019.42
5.4.440.0430.04719.24
5.4.430.0370.04019.41
5.4.420.0300.04719.43
5.4.410.0230.03319.29
5.4.400.0170.04019.09
5.4.390.0170.04019.18
5.4.380.0370.05318.50
5.4.370.0870.05718.67
5.4.360.0370.04318.72
5.4.350.0330.05018.63
5.4.340.0270.05718.66
5.4.320.0040.03912.45
5.4.310.0040.04212.45
5.4.300.0040.03812.45
5.4.290.0060.03812.45
5.4.280.0080.03812.35
5.4.270.0080.03412.35
5.4.260.0070.03712.34
5.4.250.0060.03712.34
5.4.240.0060.03612.35
5.4.230.0080.04112.34
5.4.220.0070.03612.34
5.4.210.0090.03112.34
5.4.200.0040.03812.34
5.4.190.0040.03712.34
5.4.180.0050.03612.33
5.4.170.0080.03312.34
5.4.160.0050.03712.34
5.4.150.0050.04912.34
5.4.140.0080.03612.02
5.4.130.0090.03212.01
5.4.120.0060.04311.97
5.4.110.0040.03711.96
5.4.100.0050.03411.96
5.4.90.0080.03411.96
5.4.80.0070.03611.96
5.4.70.0040.03611.96
5.4.60.0040.03811.96
5.4.50.0070.03511.96
5.4.40.0040.03511.95
5.4.30.0060.03311.95
5.4.20.0060.03611.95
5.4.10.0030.03611.95
5.4.00.0080.03411.43
5.3.290.0060.03812.80
5.3.280.0090.03712.71
5.3.270.0100.03512.73
5.3.260.0060.03712.72
5.3.250.0040.03812.72
5.3.240.0060.03612.72
5.3.230.0070.05212.71
5.3.220.0070.05112.68
5.3.210.0050.04212.68
5.3.200.0060.04012.68
5.3.190.0040.03912.68
5.3.180.0100.03812.67
5.3.170.0070.03912.67
5.3.160.0060.03612.68
5.3.150.0060.03612.68
5.3.140.0030.04512.66
5.3.130.0050.04312.66
5.3.120.0080.04212.66
5.3.110.0080.03612.66
5.3.100.0090.03412.12
5.3.90.0090.03212.08
5.3.80.0060.03512.08
5.3.70.0060.03412.08
5.3.60.0040.05112.07
5.3.50.0090.04112.00
5.3.40.0050.03712.00
5.3.30.0070.03411.95
5.3.20.0070.03611.73
5.3.10.0050.04011.70
5.3.00.0080.03511.69
5.2.170.0070.0339.19
5.2.160.0050.0289.19
5.2.150.0040.0319.19
5.2.140.0060.0289.19
5.2.130.0030.0309.14
5.2.120.0020.0309.14
5.2.110.0040.0299.15
5.2.100.0050.0289.16
5.2.90.0070.0279.15
5.2.80.0060.0299.14
5.2.70.0030.0359.15
5.2.60.0040.0309.10
5.2.50.0080.0369.07
5.2.40.0040.0319.05
5.2.30.0050.0319.03
5.2.20.0080.0249.01
5.2.10.0050.0268.91
5.2.00.0020.0308.77
5.1.60.0060.0218.06
5.1.50.0040.0248.05
5.1.40.0060.0228.04
5.1.30.0050.0248.39
5.1.20.0010.0308.41
5.1.10.0030.0268.13
5.1.00.0050.0288.14
5.0.50.0060.0226.61
5.0.40.0040.0186.47
5.0.30.0050.0286.29
5.0.20.0010.0216.26
5.0.10.0030.0206.23
5.0.00.0020.0326.23
4.4.90.0080.0154.78
4.4.80.0030.0184.76
4.4.70.0020.0264.75
4.4.60.0040.0204.75
4.4.50.0030.0194.77
4.4.40.0030.0264.71
4.4.30.0030.0154.76
4.4.20.0020.0154.84
4.4.10.0040.0134.85
4.4.00.0020.0254.76
4.3.110.0020.0174.67
4.3.100.0000.0174.67
4.3.90.0040.0124.63
4.3.80.0020.0264.59
4.3.70.0040.0124.63
4.3.60.0050.0184.63
4.3.50.0020.0154.62
4.3.40.0040.0224.54
4.3.30.0020.0163.28
4.3.20.0010.0233.26
4.3.10.0020.0163.22
4.3.00.0070.01315.97

preferences:
39.98 ms | 400 KiB | 5 Q