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: $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.60.0000.01418.43
8.3.50.0040.01418.33
8.3.40.0180.00019.01
8.3.30.0030.01218.92
8.3.20.0070.00020.20
8.3.10.0050.00320.78
8.3.00.0080.00019.38
8.2.180.0160.00316.46
8.2.170.0100.01022.96
8.2.160.0070.00718.91
8.2.150.0030.00524.18
8.2.140.0100.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00321.03
8.2.110.0040.00420.61
8.2.100.0110.00418.22
8.2.90.0040.00419.05
8.2.80.0030.00517.97
8.2.70.0060.00317.88
8.2.60.0040.00417.80
8.2.50.0090.00018.07
8.2.40.0040.00418.16
8.2.30.0000.01019.56
8.2.20.0080.00017.89
8.2.10.0050.00218.13
8.2.00.0070.00017.92
8.1.280.0090.00625.92
8.1.270.0060.00323.82
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0000.00823.84
8.1.230.0040.00819.05
8.1.220.0020.00517.74
8.1.210.0040.00418.77
8.1.200.0060.00317.48
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0000.00818.63
8.1.160.0000.00721.85
8.1.150.0050.00218.85
8.1.140.0000.00717.58
8.1.130.0030.00317.85
8.1.120.0040.00417.61
8.1.110.0070.00017.56
8.1.100.0000.00717.38
8.1.90.0040.00417.54
8.1.80.0030.00317.48
8.1.70.0070.00017.50
8.1.60.0030.00517.68
8.1.50.0060.00317.66
8.1.40.0040.00417.49
8.1.30.0080.00017.68
8.1.20.0040.00417.67
8.1.10.0000.00717.56
8.1.00.0070.00017.58
8.0.300.0000.00818.77
8.0.290.0020.00516.88
8.0.280.0000.00718.50
8.0.270.0040.00417.28
8.0.260.0000.00717.34
8.0.250.0070.00017.11
8.0.240.0030.00317.14
8.0.230.0000.00717.14
8.0.220.0000.00716.93
8.0.210.0000.00717.07
8.0.200.0000.00617.11
8.0.190.0050.00216.98
8.0.180.0000.00716.95
8.0.170.0040.00417.10
8.0.160.0000.00717.05
8.0.150.0000.00716.89
8.0.140.0070.00016.90
8.0.130.0050.00013.47
8.0.120.0040.00416.88
8.0.110.0080.00017.05
8.0.100.0040.00417.13
8.0.90.0000.00716.96
8.0.80.0100.01316.91
8.0.70.0040.00416.93
8.0.60.0030.00516.99
8.0.50.0040.00416.92
8.0.30.0070.01417.28
8.0.20.0110.00817.40
8.0.10.0020.00517.11
8.0.00.0110.01016.97
7.4.330.0050.00015.16
7.4.320.0040.00416.66
7.4.300.0000.00716.63
7.4.290.0040.00416.79
7.4.280.0040.00416.75
7.4.270.0030.00316.67
7.4.260.0000.00716.71
7.4.250.0050.00316.71
7.4.240.0010.00616.67
7.4.230.0000.00716.56
7.4.220.0070.01716.58
7.4.210.0080.00816.86
7.4.200.0030.00316.68
7.4.160.0210.00316.53
7.4.150.0090.00917.40
7.4.140.0100.00617.86
7.4.130.0100.00816.72
7.4.120.0150.00316.62
7.4.110.0100.00716.57
7.4.100.0030.01616.75
7.4.90.0080.00816.73
7.4.80.0100.01019.39
7.4.70.0100.01416.83
7.4.60.0130.00616.66
7.4.50.0000.00616.63
7.4.40.0060.00916.55
7.4.30.0130.00316.54
7.4.10.0130.00615.17
7.4.00.0090.00915.22
7.3.330.0000.00513.25
7.3.320.0000.00713.15
7.3.310.0040.00416.38
7.3.300.0030.00316.40
7.3.290.0030.01616.45
7.3.280.0100.00916.40
7.3.270.0090.00917.40
7.3.260.0170.00616.46
7.3.250.0070.01116.55
7.3.240.0040.02016.47
7.3.230.0160.00316.86
7.3.210.0110.00616.39
7.3.200.0060.01619.39
7.3.190.0140.00616.38
7.3.180.0090.00616.51
7.3.170.0100.00716.46
7.3.160.0100.00716.29
7.3.130.0030.01415.05
7.3.120.0060.01214.92
7.3.110.0060.00915.13
7.3.100.0030.00915.20
7.3.90.0040.01414.90
7.3.80.0040.01514.79
7.3.70.0120.00314.77
7.3.60.0060.00614.89
7.3.50.0040.01114.78
7.3.40.0060.01014.96
7.3.30.0030.01314.94
7.3.20.0090.00616.84
7.3.10.0130.00716.51
7.3.00.0120.00716.55
7.2.330.0080.00816.68
7.2.320.0120.00416.64
7.2.310.0080.01616.76
7.2.300.0120.00316.45
7.2.290.0080.00816.74
7.2.260.0070.01114.74
7.2.250.0030.01615.03
7.2.240.0030.01215.01
7.2.230.0000.00915.28
7.2.220.0050.00514.92
7.2.210.0000.01615.04
7.2.200.0060.00915.02
7.2.190.0080.00815.26
7.2.180.0100.00715.09
7.2.170.0030.01015.22
7.2.160.0060.00315.10
7.2.150.0000.01216.88
7.2.140.0090.00616.80
7.2.130.0150.00516.98
7.2.120.0080.01116.84
7.2.110.0130.00516.87
7.2.100.0070.01016.53
7.2.90.0070.00816.81
7.2.80.0080.01016.97
7.2.70.0110.00716.63
7.2.60.0080.01216.87
7.2.50.0120.00516.77
7.2.40.0080.00816.94
7.2.30.0110.00816.64
7.2.20.0110.00616.75
7.2.10.0080.00916.63
7.2.00.0050.01117.88
7.1.330.0060.00815.57
7.1.320.0030.00915.98
7.1.310.0060.01215.84
7.1.300.0040.01115.89
7.1.290.0070.00716.02
7.1.280.0070.00715.71
7.1.270.0040.00816.05
7.1.260.0000.01315.84
7.1.250.0110.00815.75
7.1.240.0040.01115.79
7.1.230.0100.00416.00
7.1.220.0100.00315.63
7.1.210.0040.01115.73
7.1.200.0130.01315.88
7.1.190.0000.01515.74
7.1.180.0030.00915.87
7.1.170.0080.00415.92
7.1.160.0070.01015.97
7.1.150.0030.00715.94
7.1.140.0030.00915.62
7.1.130.0060.00915.89
7.1.120.0030.00616.02
7.1.110.0060.00315.59
7.1.100.0020.01217.23
7.1.90.0000.00815.88
7.1.80.0030.00915.61
7.1.70.0030.00716.54
7.1.60.0050.01317.79
7.1.50.0050.01216.41
7.1.40.0030.01015.64
7.1.30.0070.01015.88
7.1.20.0060.00315.89
7.1.10.0090.00915.50
7.1.00.0060.03919.22
7.0.330.0030.00815.38
7.0.320.0070.00715.63
7.0.310.0070.01015.57
7.0.300.0030.01015.53
7.0.290.0000.01015.49
7.0.280.0050.00515.72
7.0.270.0000.01515.51
7.0.260.0000.01015.52
7.0.250.0070.00715.34
7.0.240.0040.01115.76
7.0.230.0060.00315.18
7.0.220.0030.00915.59
7.0.210.0130.00015.47
7.0.200.0050.00816.13
7.0.190.0140.00015.52
7.0.180.0000.01315.43
7.0.170.0030.01015.57
7.0.160.0030.01015.67
7.0.150.0030.01315.28
7.0.140.0030.04618.86
7.0.130.0030.00615.39
7.0.120.0030.00815.65
7.0.110.0030.00915.26
7.0.100.0000.01215.58
7.0.90.0070.00715.41
7.0.80.0100.00015.69
7.0.70.0000.00815.70
7.0.60.0040.04817.66
7.0.50.0000.02816.63
7.0.40.0100.03816.80
7.0.30.0160.02016.82
7.0.20.0110.02416.75
7.0.10.0160.03416.72
7.0.00.0070.03416.86
5.6.400.0060.00614.60
5.6.390.0030.00914.33
5.6.380.0030.01014.11
5.6.370.0090.00614.07
5.6.360.0030.01014.09
5.6.350.0070.00314.68
5.6.340.0060.00314.38
5.6.330.0030.01014.36
5.6.320.0090.00614.45
5.6.310.0070.00714.25
5.6.300.0070.00714.00
5.6.290.0140.00314.52
5.6.280.0030.03817.71
5.6.270.0000.01514.55
5.6.260.0030.01014.48
5.6.250.0080.00414.15
5.6.240.0000.01014.14
5.6.230.0070.00714.23
5.6.220.0030.01014.52
5.6.210.0080.04217.47
5.6.200.0050.02516.16
5.6.190.0070.04217.40
5.6.180.0180.03217.38
5.6.170.0180.03017.44
5.6.160.0070.04417.37
5.6.150.0070.03816.29
5.6.140.0060.02316.35
5.6.130.0070.03816.07
5.6.120.0030.03217.74
5.6.110.0100.04217.52
5.6.100.0030.04817.59
5.6.90.0070.04517.66
5.6.80.0080.03817.38
5.6.70.0190.03817.30
5.6.60.0060.00613.97
5.6.50.0030.01314.33
5.6.40.0000.01714.02
5.6.30.0000.01414.45
5.6.20.0030.01014.03
5.6.10.0030.01314.23
5.6.00.0030.01214.12
5.5.380.0080.00313.94
5.5.370.0030.01014.30
5.5.360.0060.01014.09
5.5.350.0080.04117.36
5.5.340.0000.05015.99
5.5.330.0070.04517.36
5.5.320.0170.04217.25
5.5.310.0310.03217.43
5.5.300.0070.04416.01
5.5.290.0050.04516.12
5.5.280.0100.04017.29
5.5.270.0060.04517.47
5.5.260.0030.04017.58
5.5.250.0070.03317.55
5.5.240.0080.04217.21
5.5.230.0070.00714.33
5.5.220.0030.01014.13
5.5.210.0030.01214.38
5.5.200.0030.01414.20
5.5.190.0070.00714.48
5.5.180.0140.00314.22
5.5.170.0090.00913.86
5.5.160.0120.00414.24
5.5.150.0030.01014.35
5.5.140.0040.00714.02
5.5.130.0040.01214.23
5.5.120.0080.00814.06
5.5.110.0040.01114.18
5.5.100.0040.01113.97
5.5.90.0070.00714.02
5.5.80.0000.01214.37
5.5.70.0030.01014.35
5.5.60.0150.00014.07
5.5.50.0070.00714.32
5.5.40.0090.00314.36
5.5.30.0030.01014.19
5.5.20.0090.00614.05
5.5.10.0030.00614.17
5.5.00.0080.00314.30
5.4.450.0210.01715.09
5.4.440.0240.02515.01
5.4.430.0230.02315.23
5.4.420.0100.02415.22
5.4.410.0180.02115.13
5.4.400.0130.02515.03
5.4.390.0080.02514.85
5.4.380.0150.03514.77
5.4.370.0220.02914.90
5.4.360.0220.03814.61
5.4.350.0200.02814.91
5.4.340.0210.02514.92
5.4.330.0000.01410.67
5.4.320.0060.01911.79
5.4.310.0030.02411.66
5.4.300.0060.01911.71
5.4.290.0090.01911.66
5.4.280.0050.02311.73
5.4.270.0040.02411.57
5.4.260.0050.02211.74
5.4.250.0040.02411.62
5.4.240.0070.01911.79
5.4.230.0050.02311.71
5.4.220.0070.02311.60
5.4.210.0040.02411.71
5.4.200.0050.02111.58
5.4.190.0050.02111.70
5.4.180.0050.02311.62
5.4.170.0040.02011.47
5.4.160.0060.01811.68
5.4.150.0020.02411.62
5.4.140.0050.02111.57
5.4.130.0080.01911.48
5.4.120.0070.02011.39
5.4.110.0040.02111.36
5.4.100.0050.02311.46
5.4.90.0070.02011.44
5.4.80.0040.02511.34
5.4.70.0050.02011.47
5.4.60.0070.01911.55
5.4.50.0070.02811.48
5.4.40.0060.02711.33
5.4.30.0040.02911.54
5.4.20.0050.02211.36
5.4.10.0060.02011.44
5.4.00.0060.02011.02
5.3.290.0080.03812.80
5.3.280.0070.03812.71
5.3.270.0060.04112.72
5.3.260.0080.04112.72
5.3.250.0050.04212.72
5.3.240.0120.04912.72
5.3.230.0090.05012.71
5.3.220.0070.04412.68
5.3.210.0050.04312.68
5.3.200.0050.03812.68
5.3.190.0090.03612.68
5.3.180.0060.03712.68
5.3.170.0100.03812.67
5.3.160.0080.03812.67
5.3.150.0090.03612.67
5.3.140.0100.03212.66
5.3.130.0060.04112.66
5.3.120.0090.04812.66
5.3.110.0060.03912.66
5.3.100.0070.03712.12
5.3.90.0070.03912.08
5.3.80.0110.03312.07
5.3.70.0040.04012.07
5.3.60.0090.03712.07
5.3.50.0060.03712.00
5.3.40.0100.03412.00
5.3.30.0070.03511.96
5.3.20.0080.03311.74
5.3.10.0060.03711.70
5.3.00.0050.04011.69
5.2.170.0100.0279.19
5.2.160.0050.0319.19
5.2.150.0040.0349.19
5.2.140.0070.0289.18
5.2.130.0050.0319.15
5.2.120.0050.0309.15
5.2.110.0060.0329.15
5.2.100.0070.0329.15
5.2.90.0080.0329.15
5.2.80.0100.0319.15
5.2.70.0060.0359.15
5.2.60.0050.0319.10
5.2.50.0060.0349.07
5.2.40.0050.0299.05
5.2.30.0070.0319.03
5.2.20.0050.0329.04
5.2.10.0050.0298.93
5.2.00.0120.0368.79
5.1.60.0060.0288.08
5.1.50.0050.0258.07
5.1.40.0050.0298.05
5.1.30.0050.0368.41
5.1.20.0070.0268.42
5.1.10.0030.0298.15
5.1.00.0060.0258.15
5.0.50.0050.0206.63
5.0.40.0040.0206.49
5.0.30.0030.0336.30
5.0.20.0060.0176.27
5.0.10.0040.0206.25
5.0.00.0070.0376.25
4.4.90.0030.0224.77
4.4.80.0020.0164.75
4.4.70.0010.0184.76
4.4.60.0020.0174.76
4.4.50.0050.0134.77
4.4.40.0040.0264.71
4.4.30.0040.0154.76
4.4.20.0020.0174.85
4.4.10.0030.0174.85
4.4.00.0040.0244.76
4.3.110.0020.0164.67
4.3.100.0060.0134.67
4.3.90.0050.0204.63
4.3.80.0040.0254.59
4.3.70.0030.0164.63
4.3.60.0050.0194.63
4.3.50.0040.0214.62
4.3.40.0020.0304.54
4.3.30.0040.0143.29
4.3.20.0010.0173.27
4.3.10.0030.0183.23
4.3.00.0000.02013.57

preferences:
54.97 ms | 400 KiB | 5 Q