3v4l.org

run code in 300+ PHP versions simultaneously
<?php function hideEmail($email){ $prefix = substr($email, 0, strrpos($email, '@')); $suffix = substr($email, strripos($email, '@')); $len = floor(strlen($prefix)/2); return substr($prefix,0, $len) . str_repeat('*', $len) . $suffix; } echo hideEmail('abcdljtrsjtrsjlkjk@hotmail.com'); echo hideEmail('"abc\@def"@iana.org');

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.0130.00618.18
8.3.50.0110.00321.96
8.3.40.0110.00718.54
8.3.30.0110.00318.96
8.3.20.0020.00520.29
8.3.10.0040.00423.36
8.3.00.0040.00420.89
8.2.180.0180.00318.04
8.2.170.0030.01022.96
8.2.160.0070.00720.46
8.2.150.0000.00724.18
8.2.140.0030.00624.66
8.2.130.0090.00926.16
8.2.120.0080.00019.24
8.2.110.0090.00021.06
8.2.100.0080.00417.72
8.2.90.0030.00619.09
8.2.80.0000.00817.97
8.2.70.0050.00317.63
8.2.60.0100.00017.80
8.2.50.0060.00318.10
8.2.40.0060.00320.07
8.2.30.0050.00318.13
8.2.20.0000.00817.77
8.2.10.0030.00517.97
8.2.00.0040.00417.80
8.1.280.0040.01425.92
8.1.270.0060.00324.02
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00022.02
8.1.230.0090.00317.76
8.1.220.0060.00317.74
8.1.210.0080.00018.77
8.1.200.0060.00317.22
8.1.190.0000.00817.23
8.1.180.0030.00518.10
8.1.170.0000.00918.71
8.1.160.0040.00421.88
8.1.150.0080.00018.61
8.1.140.0080.00017.38
8.1.130.0000.00717.85
8.1.120.0000.00717.49
8.1.110.0070.00017.37
8.1.100.0070.00017.36
8.1.90.0000.00717.36
8.1.80.0030.00517.36
8.1.70.0030.00317.45
8.1.60.0040.00817.52
8.1.50.0030.00617.39
8.1.40.0040.00817.50
8.1.30.0040.00417.49
8.1.20.0040.00417.62
8.1.10.0040.00417.54
8.1.00.0000.00717.32
8.0.300.0090.00018.77
8.0.290.0050.00216.58
8.0.280.0040.00418.44
8.0.270.0030.00317.28
8.0.260.0030.00317.27
8.0.250.0070.00016.96
8.0.240.0070.00016.91
8.0.230.0000.00716.96
8.0.220.0000.00916.87
8.0.210.0050.00316.78
8.0.200.0070.00016.93
8.0.190.0000.00716.95
8.0.180.0050.00316.84
8.0.170.0000.00816.96
8.0.160.0070.00016.83
8.0.150.0000.00816.86
8.0.140.0040.00416.79
8.0.130.0000.00613.34
8.0.120.0070.00016.85
8.0.110.0000.00716.86
8.0.100.0040.00416.80
8.0.90.0040.00416.76
8.0.80.0090.00616.86
8.0.70.0000.00716.84
8.0.60.0030.00516.78
8.0.50.0030.00516.74
8.0.30.0100.00817.16
8.0.20.0140.00517.40
8.0.10.0080.00016.95
8.0.00.0060.01816.89
7.4.330.0050.00015.01
7.4.320.0030.00316.46
7.4.300.0000.00716.61
7.4.290.0000.00716.42
7.4.280.0080.00316.58
7.4.270.0000.00716.54
7.4.260.0030.00316.48
7.4.250.0040.00416.49
7.4.240.0040.00416.49
7.4.230.0030.00316.44
7.4.220.0170.01016.44
7.4.210.0060.00916.50
7.4.200.0030.00316.70
7.4.160.0120.00416.43
7.4.150.0100.01417.40
7.4.140.0090.00917.86
7.4.130.0100.00616.49
7.4.120.0100.00816.52
7.4.110.0100.00716.64
7.4.100.0060.01216.60
7.4.90.0110.01116.49
7.4.80.0040.01519.39
7.4.70.0110.00416.60
7.4.60.0060.01016.46
7.4.50.0000.00816.41
7.4.40.0160.00016.49
7.4.30.0120.00316.56
7.4.00.0030.00814.71
7.3.330.0050.00013.33
7.3.320.0050.00013.31
7.3.310.0030.00516.33
7.3.300.0050.00216.25
7.3.290.0110.00316.44
7.3.280.0090.01016.37
7.3.270.0100.01017.40
7.3.260.0090.00916.54
7.3.250.0090.00816.59
7.3.240.0150.00316.36
7.3.230.0090.01216.42
7.3.210.0090.00916.35
7.3.200.0100.00719.39
7.3.190.0060.01016.67
7.3.180.0090.00616.30
7.3.170.0090.00816.65
7.3.160.0150.00316.52
7.3.120.0000.01315.07
7.2.330.0100.00716.57
7.2.320.0110.01116.66
7.2.310.0070.01016.54
7.2.300.0080.00916.43
7.2.290.0030.01316.60
7.2.60.0030.01017.14
7.2.00.0000.01119.32
7.1.200.0000.00915.70
7.1.100.0050.00517.72
7.1.70.0040.00417.10
7.1.60.0000.01117.19
7.1.50.0100.01016.96
7.1.00.0100.07022.27
7.0.200.0080.00516.87
7.0.140.0030.07321.95
7.0.110.0130.06020.07
7.0.100.0200.04020.00
7.0.90.0130.04319.93
7.0.80.0030.05719.88
7.0.70.0230.06719.91
7.0.60.0230.07319.89
7.0.50.0070.07720.05
7.0.40.0100.08019.59
7.0.30.0130.05019.80
7.0.20.0000.05019.74
7.0.10.0070.07319.73
7.0.00.0070.07719.77
5.6.280.0030.07320.78
5.6.260.0100.07720.73
5.6.250.0070.08020.73
5.6.240.0070.07020.58
5.6.230.0070.05720.57
5.6.220.0100.04320.84
5.6.210.0170.06720.68
5.6.200.0030.04020.64
5.6.190.0070.06320.69
5.6.180.0200.04020.70
5.6.170.0100.08320.62
5.6.160.0100.07320.61
5.6.150.0030.05320.64
5.6.140.0130.07020.81
5.6.130.0070.05320.59
5.6.120.0000.09020.61
5.6.110.0130.08020.61
5.6.100.0000.07320.54
5.6.90.0030.06720.54
5.6.80.0070.06720.03
5.6.70.0030.07720.03
5.6.60.0070.06720.05
5.6.50.0100.06720.09
5.6.40.0130.07320.18
5.6.30.0030.07719.92
5.6.20.0070.07319.91
5.6.10.0100.04020.01
5.6.00.0070.05719.97
5.5.380.0130.06317.51
5.5.370.0070.07317.55
5.5.360.0100.05017.68
5.5.350.0070.08017.55
5.5.340.0000.05317.96
5.5.330.0000.05318.25
5.5.320.0070.08018.23
5.5.310.0030.06317.93
5.5.300.0030.08018.13
5.5.290.0030.09017.83
5.5.280.0100.07318.13
5.5.270.0100.08318.22
5.5.260.0170.06717.91
5.5.250.0170.06717.86
5.5.240.0070.06017.46
5.5.230.0070.08317.61
5.5.220.0100.07717.48
5.5.210.0070.08017.60
5.5.200.0100.07317.61
5.5.190.0070.04317.45
5.5.180.0130.07017.41
5.5.160.0070.07717.57
5.5.150.0130.07017.28
5.5.140.0100.06717.46
5.5.130.0030.07717.26
5.5.120.0070.06017.44
5.5.110.0130.07017.30
5.5.100.0030.07717.16
5.5.90.0070.07017.35
5.5.80.0070.07017.32
5.5.70.0070.07317.36
5.5.60.0070.04017.32
5.5.50.0030.07317.47
5.5.40.0070.06317.16
5.5.30.0070.04717.17
5.5.20.0200.03317.16
5.5.10.0070.07317.15
5.5.00.0070.04717.33
5.4.450.0000.07719.47
5.4.440.0070.06319.61
5.4.430.0070.08019.26
5.4.420.0100.06319.45
5.4.410.0100.07019.32
5.4.400.0170.07319.12
5.4.390.0100.07318.95
5.4.380.0070.07318.98
5.4.370.0000.07719.13
5.4.360.0030.05019.09
5.4.350.0030.05318.96
5.4.340.0030.04718.94
5.4.320.0130.06018.96
5.4.310.0070.08018.96
5.4.300.0030.03719.13
5.4.290.0100.07319.28
5.4.280.0070.07719.04
5.4.270.0070.06319.29
5.4.260.0030.08018.95
5.4.250.0100.06319.10
5.4.240.0070.06719.17
5.4.230.0030.07319.13
5.4.220.0100.03318.95
5.4.210.0030.04318.89
5.4.200.0100.05719.17
5.4.190.0070.04319.18
5.4.180.0130.06019.11
5.4.170.0070.06319.18
5.4.160.0100.05319.16
5.4.150.0100.07718.94
5.4.140.0070.04016.41
5.4.130.0030.03316.52
5.4.120.0100.06016.48
5.4.110.0030.07316.27
5.4.100.0070.07316.36
5.4.90.0100.05316.36
5.4.80.0130.06716.49
5.4.70.0070.04016.35
5.4.60.0100.06016.43
5.4.50.0100.07016.18
5.4.40.0000.04016.40
5.4.30.0000.08016.42
5.4.20.0030.06716.18
5.4.10.0130.05016.48
5.4.00.0030.04015.97
5.3.290.0070.04314.64
5.3.280.0070.05314.57
5.3.270.0070.08014.46
5.3.260.0030.07714.60
5.3.250.0070.06314.70
5.3.240.0100.07014.69
5.3.230.0030.08014.72
5.3.220.0100.02714.54
5.3.210.0030.07714.70
5.3.200.0070.03714.42
5.3.190.0000.06714.69
5.3.180.0000.04714.54
5.3.170.0030.07314.69
5.3.160.0170.06014.54
5.3.150.0030.06714.55
5.3.140.0000.04714.56
5.3.130.0070.08014.69
5.3.120.0000.06314.68
5.3.110.0170.07714.40
5.3.100.0100.03314.07
5.3.90.0100.03714.14
5.3.80.0070.07713.97
5.3.70.0030.07313.97
5.3.60.0070.07014.08
5.3.50.0100.06314.07
5.3.40.0070.04013.93
5.3.30.0070.04014.04
5.3.20.0000.08013.68
5.3.10.0100.06713.88
5.3.00.0100.06713.65
5.2.170.0000.03711.21
5.2.160.0170.05011.28
5.2.150.0070.05711.14
5.2.140.0070.05711.14
5.2.130.0070.05711.07
5.2.120.0070.03311.11
5.2.110.0100.04311.32
5.2.100.0000.06711.09
5.2.90.0070.05711.08
5.2.80.0000.05711.05
5.2.70.0170.05311.15
5.2.60.0030.06311.01
5.2.50.0030.05311.08
5.2.40.0070.05011.14
5.2.30.0100.05010.97
5.2.20.0100.05010.98
5.2.10.0030.04710.94
5.2.00.0070.03010.70
5.1.60.0030.05010.05
5.1.50.0000.0379.99
5.1.40.0100.0309.98
5.1.30.0000.03010.35
5.1.20.0030.02710.31
5.1.10.0000.03010.03
5.1.00.0030.05710.14
5.0.50.0030.0209.50
5.0.40.0000.0339.50
5.0.30.0000.0509.50
5.0.20.0030.0439.50
5.0.10.0070.0409.50
5.0.00.0000.0479.50
4.4.90.0000.0209.50
4.4.80.0030.0339.50
4.4.70.0000.0379.50
4.4.60.0030.0339.50
4.4.50.0030.0339.50
4.4.40.0000.0509.50
4.4.30.0030.0179.50
4.4.20.0000.0179.50
4.4.10.0030.0339.50
4.4.00.0030.0539.50
4.3.110.0030.0339.50
4.3.100.0030.0339.50
4.3.90.0000.0279.50
4.3.80.0000.0339.50
4.3.70.0030.0139.50
4.3.60.0000.0179.50
4.3.50.0000.0179.50
4.3.40.0100.0479.50
4.3.30.0030.0209.50
4.3.20.0070.0379.50
4.3.10.0000.0179.50
4.3.00.0000.0209.50

preferences:
45.13 ms | 401 KiB | 5 Q