3v4l.org

run code in 300+ PHP versions simultaneously
<?php $email = 'ExamplePerson+test@Gmail.com'; // Remove email tags, value will become 'ExamplePerson@Gmail.com' $email = preg_replace('/\+[^@]+@/', '@', $email); // Convert uppercase letters, value will become 'exampleperson@gmail.com' $email = strtolower($email); // Add prefix, value will become 'anon-hash:exampleperson@gmail.com' $email = 'anon-hash:'. $email; // Make the hash, value will become '56f1902ef780b12430ae194290057a40' $ahash = md5($email); // Or, in short: $email = 'ExamplePerson+test@Gmail.com'; $bhash = md5('anon-hash:' . strtolower(preg_replace('/\+[^@]+@/', '@', $email))); var_dump($ahash, $bhash);

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.40.0110.00419.01
8.3.30.0080.00619.04
8.3.20.0000.00720.16
8.3.10.0040.00420.58
8.3.00.0060.00319.50
8.2.170.0070.01022.96
8.2.160.0110.00420.47
8.2.150.0080.00024.18
8.2.140.0030.00924.66
8.2.130.0080.00026.16
8.2.120.0030.00521.06
8.2.110.0060.00320.38
8.2.100.0130.00018.09
8.2.90.0000.00719.05
8.2.80.0080.00017.97
8.2.70.0060.00317.63
8.2.60.0040.00418.05
8.2.50.0000.00818.07
8.2.40.0040.00418.16
8.2.30.0030.00619.42
8.2.20.0040.00417.78
8.2.10.0070.00018.25
8.2.00.0000.00717.86
8.1.270.0030.00623.78
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00023.66
8.1.230.0110.00019.09
8.1.220.0000.00717.79
8.1.210.0030.00518.77
8.1.200.0090.00417.38
8.1.190.0030.00517.47
8.1.180.0050.00318.10
8.1.170.0030.00518.70
8.1.160.0040.00421.98
8.1.150.0000.00818.77
8.1.140.0050.00317.47
8.1.130.0070.00017.96
8.1.120.0040.00417.45
8.1.110.0040.00417.59
8.1.100.0050.00317.44
8.1.90.0070.00017.58
8.1.80.0000.00717.53
8.1.70.0000.00717.47
8.1.60.0000.00917.73
8.1.50.0050.00317.50
8.1.40.0000.00717.62
8.1.30.0030.00617.73
8.1.20.0040.00417.66
8.1.10.0000.00717.54
8.1.00.0030.00617.53
8.0.300.0040.00418.77
8.0.290.0050.00316.88
8.0.280.0070.00018.48
8.0.270.0070.00017.24
8.0.260.0030.00317.29
8.0.250.0030.00317.04
8.0.240.0030.00317.13
8.0.230.0000.00716.99
8.0.220.0030.00317.09
8.0.210.0000.00716.93
8.0.200.0000.00617.01
8.0.190.0040.00417.09
8.0.180.0070.00016.97
8.0.170.0040.00417.07
8.0.160.0070.00017.09
8.0.150.0050.00217.01
8.0.140.0000.00716.88
8.0.130.0060.00013.47
8.0.120.0080.00016.98
8.0.110.0040.00417.10
8.0.100.0000.00817.06
8.0.90.0030.00317.02
8.0.80.0070.01017.02
8.0.70.0040.00416.83
8.0.60.0000.00816.88
8.0.50.0050.00216.98
8.0.30.0130.01017.32
8.0.20.0090.01017.40
8.0.10.0000.00716.96
8.0.00.0080.00816.92
7.4.330.0000.00515.01
7.4.320.0060.00016.57
7.4.300.0000.00616.60
7.4.290.0040.00416.63
7.4.280.0040.00416.77
7.4.270.0070.00016.56
7.4.260.0000.00716.60
7.4.250.0070.00016.71
7.4.240.0030.00316.71
7.4.230.0000.00716.78
7.4.220.0070.01116.73
7.4.210.0090.00916.87
7.4.200.0000.00716.50
7.4.160.0130.00716.67
7.4.150.0060.01317.40
7.4.140.0070.01417.86
7.4.130.0070.01016.63
7.4.120.0120.00516.76
7.4.110.0100.00716.74
7.4.100.0120.01216.49
7.4.90.0120.00616.61
7.4.80.0080.00819.39
7.4.70.0080.00816.64
7.4.60.0100.01016.67
7.4.50.0050.00016.80
7.4.40.0140.00316.57
7.4.30.0060.01016.80
7.4.00.0030.01015.13
7.3.330.0000.00513.32
7.3.320.0030.00313.33
7.3.310.0000.00716.46
7.3.300.0000.00716.37
7.3.290.0070.01316.32
7.3.280.0060.01016.42
7.3.270.0090.00917.40
7.3.260.0040.01416.44
7.3.250.0090.00816.65
7.3.240.0130.00916.40
7.3.230.0090.00916.39
7.3.210.0120.00916.51
7.3.200.0030.01719.39
7.3.190.0110.01116.34
7.3.180.0120.00316.67
7.3.170.0030.01316.64
7.3.160.0060.01116.41
7.3.120.0060.00914.99
7.3.110.0100.01015.03
7.3.100.0060.00914.55
7.3.90.0060.00915.16
7.3.80.0100.00315.11
7.3.70.0030.01314.93
7.3.60.0040.00814.73
7.3.50.0110.00614.68
7.3.40.0150.00014.65
7.3.30.0000.00814.86
7.3.20.0060.00916.59
7.3.10.0030.01016.86
7.3.00.0030.00916.65
7.2.330.0110.00616.75
7.2.320.0090.00916.79
7.2.310.0030.02216.59
7.2.300.0060.01016.78
7.2.290.0100.00716.63
7.2.240.0070.01015.07
7.2.230.0030.01015.01
7.2.220.0070.00415.20
7.2.210.0060.00915.00
7.2.200.0070.01015.05
7.2.190.0040.01114.86
7.2.180.0060.00615.02
7.2.170.0030.00915.00
7.2.160.0070.00715.03
7.2.150.0060.00916.96
7.2.140.0030.00616.96
7.2.130.0030.01017.09
7.2.120.0040.00816.79
7.2.110.0100.00616.84
7.2.100.0030.01016.91
7.2.90.0060.00917.05
7.2.80.0040.01116.80
7.2.70.0030.01317.04
7.2.60.0060.00317.09
7.2.50.0060.00916.99
7.2.40.0060.00916.76
7.2.30.0040.00717.13
7.2.20.0000.01116.82
7.2.10.0030.00617.14
7.2.00.0050.00918.26
7.1.330.0090.00415.80
7.1.320.0030.00615.78
7.1.310.0060.00916.00
7.1.300.0070.00715.73
7.1.290.0060.01016.07
7.1.280.0030.01015.91
7.1.270.0030.00915.90
7.1.260.0000.00915.86
7.1.250.0030.00715.79
7.1.200.0090.00615.80
7.1.100.0000.01518.45
7.1.70.0030.00717.23
7.1.60.0030.02119.61
7.1.50.0040.01217.14
7.1.00.0100.07022.45
7.0.200.0090.00017.06
7.0.140.0000.07722.18
7.0.60.0070.07719.92
7.0.50.0100.07317.89
7.0.40.0100.08020.09
7.0.30.0230.05320.11
7.0.20.0270.07320.14
7.0.10.0370.07020.05
7.0.00.0100.08020.18
5.6.280.0000.07720.77
5.6.210.0130.05020.68
5.6.200.0200.05318.18
5.6.190.0030.09020.29
5.6.180.0400.06720.57
5.6.170.0330.06720.48
5.6.160.0100.04720.48
5.6.150.0030.06718.11
5.6.140.0000.04718.09
5.6.130.0130.07318.11
5.6.120.0100.08020.96
5.6.110.0100.06720.99
5.6.100.0130.07721.10
5.6.90.0070.08721.09
5.6.80.0130.06320.34
5.6.70.0370.07020.36
5.5.350.0000.07320.38
5.5.340.0070.04018.02
5.5.330.0100.05020.37
5.5.320.0230.08320.27
5.5.310.0330.05720.19
5.5.300.0100.03717.91
5.5.290.0030.08018.01
5.5.280.0030.04720.73
5.5.270.0070.08320.95
5.5.260.0170.06720.72
5.5.250.0030.07720.67
5.5.240.0130.07720.18
5.4.450.0330.05319.41
5.4.440.0430.04019.58
5.4.430.0170.03019.41
5.4.420.0300.03719.45
5.4.410.0200.03319.07
5.4.400.0400.04019.09
5.4.390.0070.05019.22
5.4.380.0200.05718.49
5.4.370.0400.04318.45
5.4.360.0200.06318.51
5.4.350.0300.06018.53
5.4.340.0330.05318.45
5.4.320.0070.03612.45
5.4.310.0050.03912.45
5.4.300.0040.03912.45
5.4.290.0050.04012.45
5.4.280.0070.03812.34
5.4.270.0050.03912.34
5.4.260.0060.03812.35
5.4.250.0090.03912.34
5.4.240.0040.03912.35
5.4.230.0080.03612.34
5.4.220.0050.04112.34
5.4.210.0050.03812.34
5.4.200.0070.03912.34
5.4.190.0060.03612.33
5.4.180.0100.03412.34
5.4.170.0070.03712.35
5.4.160.0080.03612.34
5.4.150.0050.03912.34
5.4.140.0040.04512.02
5.4.130.0070.03712.01
5.4.120.0040.03711.97
5.4.110.0050.03711.96
5.4.100.0040.03811.96
5.4.90.0040.04411.96
5.4.80.0070.03611.96
5.4.70.0040.03711.96
5.4.60.0060.03511.96
5.4.50.0040.03711.96
5.4.40.0060.03611.95
5.4.30.0050.03611.95
5.4.20.0070.03411.95
5.4.10.0060.03411.95
5.4.00.0050.03611.43
5.3.290.0080.04212.80
5.3.280.0060.03712.71
5.3.270.0060.04112.73
5.3.260.0090.03912.72
5.3.250.0050.04212.72
5.3.240.0060.03812.72
5.3.230.0070.03812.71
5.3.220.0070.05512.68
5.3.210.0090.03712.68
5.3.200.0070.03612.68
5.3.190.0050.04012.68
5.3.180.0060.03612.67
5.3.170.0060.03912.67
5.3.160.0090.03712.68
5.3.150.0090.03812.67
5.3.140.0130.03312.66
5.3.130.0090.03712.66
5.3.120.0100.04512.66
5.3.110.0070.03912.65
5.3.100.0070.03812.12
5.3.90.0080.03912.09
5.3.80.0060.03612.07
5.3.70.0080.03512.07
5.3.60.0080.03512.07
5.3.50.0050.03712.00
5.3.40.0100.03312.00
5.3.30.0050.03711.96
5.3.20.0090.03411.74
5.3.10.0050.03911.70
5.3.00.0050.03711.69
5.2.170.0080.0289.19
5.2.160.0030.0339.19
5.2.150.0060.0329.19
5.2.140.0070.0309.18
5.2.130.0070.0289.15
5.2.120.0030.0369.15
5.2.110.0050.0399.15
5.2.100.0080.0299.15
5.2.90.0080.0269.15
5.2.80.0060.0309.14
5.2.70.0040.0319.14
5.2.60.0060.0309.10
5.2.50.0050.0319.07
5.2.40.0090.0269.05
5.2.30.0050.0309.02
5.2.20.0070.0279.04
5.2.10.0060.0278.93
5.2.00.0040.0298.79
5.1.60.0040.0248.07
5.1.50.0050.0258.07
5.1.40.0040.0258.05
5.1.30.0040.0278.41
5.1.20.0050.0268.43
5.1.10.0020.0288.15
5.1.00.0070.0268.15
5.0.50.0030.0216.63
5.0.40.0060.0196.49
5.0.30.0050.0306.30
5.0.20.0030.0206.27
5.0.10.0060.0186.25
5.0.00.0050.0296.24
4.4.90.0020.0174.78
4.4.80.0040.0144.75
4.4.70.0030.0154.75
4.4.60.0050.0134.75
4.4.50.0020.0174.77
4.4.40.0040.0264.71
4.4.30.0020.0164.75
4.4.20.0020.0164.84
4.4.10.0030.0164.85
4.4.00.0030.0284.75
4.3.110.0080.0174.67
4.3.100.0030.0224.66
4.3.90.0030.0194.63
4.3.80.0030.0254.59
4.3.70.0060.0124.63
4.3.60.0070.0164.63
4.3.50.0030.0174.63
4.3.40.0020.0274.54
4.3.30.0040.0143.29
4.3.20.0000.0183.27
4.3.10.0020.0163.23
4.3.00.0030.02013.57

preferences:
44.89 ms | 400 KiB | 5 Q