3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'info@sample.com'; preg_match('/\A[a-zA-Z0-9.!#$%&\'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*\z/i' . e, $str);

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.130.0060.00318.40
8.3.120.0060.00320.76
8.3.110.0000.01120.94
8.3.100.0040.00424.06
8.3.90.0000.00826.77
8.3.80.0030.00618.55
8.3.70.0030.01516.36
8.3.60.0110.00418.68
8.3.50.0140.00521.28
8.3.40.0160.00018.86
8.3.30.0090.00618.79
8.3.20.0040.00421.69
8.3.10.0080.00020.42
8.3.00.0040.00423.65
8.2.250.0040.00418.52
8.2.240.0080.00019.04
8.2.230.0030.00622.58
8.2.220.0040.00437.54
8.2.210.0040.00426.77
8.2.200.0030.00616.63
8.2.190.0180.00016.75
8.2.180.0150.00016.88
8.2.170.0070.00722.96
8.2.160.0150.00020.52
8.2.150.0040.00424.18
8.2.140.0090.00924.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0060.00319.35
8.2.100.0080.00417.84
8.2.90.0000.00817.88
8.2.80.0060.00319.77
8.2.70.0040.00417.91
8.2.60.0040.00418.09
8.2.50.0030.00618.10
8.2.40.0070.00019.47
8.2.30.0040.00419.12
8.2.20.0040.00418.04
8.2.10.0000.00719.36
8.2.00.0040.00420.59
8.1.300.0040.01218.00
8.1.290.0080.00318.88
8.1.280.0140.00725.92
8.1.270.0040.00423.82
8.1.260.0040.01126.35
8.1.250.0000.00828.09
8.1.240.0060.00319.12
8.1.230.0080.00419.04
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0030.00617.34
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0080.00018.57
8.1.160.0050.00318.82
8.1.150.0000.00718.88
8.1.140.0080.00022.05
8.1.130.0040.00417.44
8.1.120.0050.00317.46
8.1.110.0080.00017.52
8.1.100.0000.00717.45
8.1.90.0000.01017.34
8.1.80.0040.00417.45
8.1.70.0030.00317.33
8.1.60.0000.00817.48
8.1.50.0050.00317.53
8.1.40.0040.00417.52
8.1.30.0000.00817.67
8.1.20.0040.00417.66
8.1.10.0040.00417.50
8.1.00.0020.00517.46
8.0.300.0040.00819.78
8.0.290.0080.00016.63
8.0.280.0040.00418.45
8.0.270.0040.00416.81
8.0.260.0000.00716.99
8.0.250.0030.00316.98
8.0.240.0030.00317.00
8.0.230.0000.00716.99
8.0.220.0030.00316.96
8.0.210.0000.00816.93
8.0.200.0040.00416.90
8.0.190.0070.00017.01
8.0.180.0030.00717.03
8.0.170.0000.00816.87
8.0.160.0050.00216.84
8.0.150.0030.00316.77
8.0.140.0000.00716.79
8.0.130.0030.00313.43
8.0.120.0040.00416.93
8.0.110.0040.00416.90
8.0.100.0080.00016.83
8.0.90.0000.00816.98
8.0.80.0120.00516.82
8.0.70.0000.00716.98
8.0.60.0030.00616.77
8.0.50.0030.00516.97
8.0.30.0120.00717.18
8.0.20.0060.01317.21
8.0.10.0040.00417.11
8.0.00.0140.00516.88
7.4.330.0030.00315.55
7.4.320.0070.00016.59
7.4.300.0000.00616.52
7.4.290.0050.00316.48
7.4.280.0040.00616.48
7.4.270.0030.00316.44
7.4.260.0000.00716.55
7.4.250.0030.00316.51
7.4.240.0050.00216.54
7.4.230.0000.00716.34
7.4.220.0000.01016.43
7.4.210.0090.00916.51
7.4.200.0040.00416.68
7.4.140.0090.00917.86
7.4.130.0060.01516.53
7.4.120.0060.01016.48
7.4.110.0100.00716.55
7.4.100.0100.00716.43
7.4.90.0030.01516.46
7.4.80.0140.00619.39
7.4.70.0130.00916.57
7.4.60.0090.00616.59
7.4.50.0060.00916.22
7.4.40.0110.00716.49
7.4.00.0030.01514.75
7.3.330.0000.00713.06
7.3.320.0030.00313.18
7.3.310.0030.00316.35
7.3.300.0000.00716.26
7.3.290.0060.01016.32
7.3.280.0090.00616.23
7.3.260.0090.00916.34
7.3.240.0080.01116.45
7.3.230.0100.01016.18
7.3.210.0000.01816.55
7.3.200.0090.00616.44
7.3.190.0100.00716.20
7.3.180.0070.01416.46
7.3.170.0070.01016.59
7.3.160.0140.00316.59
7.3.120.0100.00814.68
7.3.110.0120.00714.80
7.3.100.0060.00914.63
7.3.90.0060.00614.76
7.3.80.0030.00814.88
7.3.70.0080.00514.77
7.3.60.0090.00814.68
7.3.50.0090.00614.75
7.3.40.0080.00514.75
7.3.30.0080.00714.67
7.3.20.0120.00715.75
7.3.10.0190.00715.54
7.3.00.0100.00715.74
7.2.330.0030.01316.62
7.2.320.0070.01616.79
7.2.310.0030.01316.65
7.2.300.0080.00916.87
7.2.290.0000.01616.67
7.2.250.0070.01015.12
7.2.240.0070.01215.02
7.2.230.0080.00715.24
7.2.220.0030.01114.98
7.2.210.0050.00515.14
7.2.200.0040.01115.28
7.2.190.0100.00615.00
7.2.180.0100.00615.03
7.2.170.0050.01014.99
7.2.160.0140.00315.13
7.2.150.0210.00615.25
7.2.140.0140.00614.96
7.2.130.0160.00315.21
7.2.120.0100.01015.10
7.2.110.0170.00915.10
7.2.100.0130.00915.09
7.2.90.0220.00715.13
7.2.80.0180.00415.29
7.2.70.0080.01315.12
7.2.60.0240.00115.17
7.2.50.0100.01015.02
7.2.40.0160.00615.07
7.2.30.0130.00815.13
7.2.20.0160.01215.15
7.2.10.0120.01015.22
7.2.00.0130.00715.23
7.1.330.0100.00615.62
7.1.320.0030.00915.90
7.1.310.0070.00515.91
7.1.300.0090.00814.86
7.1.290.0100.00814.87
7.1.280.0540.01114.96
7.1.270.0080.00914.88
7.1.260.0080.00714.91
7.1.250.0150.00513.94

preferences:
27.62 ms | 403 KiB | 5 Q