3v4l.org

run code in 300+ PHP versions simultaneously
<?php function checkEmail($email) { return eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email); } function checkEmail2($email) { return preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/", $email); } if (function_exists('eregi')){ echo "eregi:\n"; var_dump(checkEmail("jim@example.com")); var_dump(checkEmail("jim@example.comm")); } echo "preg_match:\n"; var_dump(checkEmail2("jim@example.com")); var_dump(checkEmail2("jim@example.comm"));

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.0110.01118.38
8.3.50.0110.00418.19
8.3.40.0000.01518.82
8.3.30.0150.00018.79
8.3.20.0070.00019.23
8.3.10.0080.00021.91
8.3.00.0000.00820.67
8.2.180.0100.00718.41
8.2.170.0120.00322.96
8.2.160.0140.00022.39
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00419.95
8.2.120.0090.00026.35
8.2.110.0030.00619.45
8.2.100.0040.00718.16
8.2.90.0040.00417.75
8.2.80.0040.00417.97
8.2.70.0050.00317.80
8.2.60.0060.00318.03
8.2.50.0030.00618.10
8.2.40.0000.00719.33
8.2.30.0030.00519.21
8.2.20.0030.00517.89
8.2.10.0030.00617.86
8.2.00.0030.00617.59
8.1.280.0100.00725.92
8.1.270.0080.00023.83
8.1.260.0060.00326.35
8.1.250.0070.00028.09
8.1.240.0040.00422.21
8.1.230.0100.00018.86
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0000.01017.23
8.1.190.0080.00017.13
8.1.180.0050.00318.10
8.1.170.0000.00918.71
8.1.160.0050.00318.77
8.1.150.0040.00418.78
8.1.140.0070.00022.07
8.1.130.0000.00720.33
8.1.120.0030.00517.51
8.1.110.0060.00317.53
8.1.100.0040.00417.48
8.1.90.0040.00417.54
8.1.80.0000.00817.49
8.1.70.0000.00717.50
8.1.60.0080.00017.55
8.1.50.0040.00417.64
8.1.40.0050.00317.50
8.1.30.0070.00317.64
8.1.20.0000.00817.66
8.1.10.0000.00817.50
8.1.00.0000.00817.50
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0000.00718.45
8.0.270.0050.00317.22
8.0.260.0060.00018.34
8.0.250.0030.00316.95
8.0.240.0000.00716.91
8.0.230.0030.00316.94
8.0.220.0000.01116.88
8.0.210.0050.00316.75
8.0.200.0040.00416.84
8.0.190.0070.00016.99
8.0.180.0070.00016.94
8.0.170.0090.00016.99
8.0.160.0030.00316.91
8.0.150.0070.00316.92
8.0.140.0050.00316.89
8.0.130.0030.00313.33
8.0.120.0030.00516.78
8.0.110.0000.00716.91
8.0.100.0040.00416.97
8.0.90.0050.00216.71
8.0.80.0050.01016.91
8.0.70.0000.00717.03
8.0.60.0000.00717.00
8.0.50.0000.00716.77
8.0.30.0100.00917.10
8.0.20.0180.00917.40
8.0.10.0080.00017.07
8.0.00.0090.00916.87
7.4.330.0000.00515.55
7.4.320.0030.00316.66
7.4.300.0060.00016.73
7.4.290.0000.00716.66
7.4.280.0030.00616.66
7.4.270.0000.00716.64
7.4.260.0030.00516.74
7.4.250.0000.00716.71
7.4.240.0000.00716.63
7.4.230.0080.00016.65
7.4.220.0000.00816.57
7.4.210.0090.00916.71
7.4.200.0070.00016.71
7.4.160.0090.00816.60
7.4.140.0100.00917.86
7.4.130.0120.00616.63
7.4.120.0090.00916.59
7.4.110.0080.01116.49
7.4.100.0060.01116.59
7.4.90.0100.00616.62
7.4.80.0060.01219.39
7.4.70.0120.00916.53
7.4.60.0100.00616.61
7.4.50.0110.00416.36
7.4.40.0090.01216.67
7.4.00.0060.00914.96
7.3.330.0050.00013.23
7.3.320.0030.00313.40
7.3.310.0040.00416.26
7.3.300.0030.00316.45
7.3.290.0000.00716.41
7.3.280.0030.01216.39
7.3.260.0130.00716.54
7.3.240.0080.00916.63
7.3.230.0130.01016.89
7.3.210.0090.00916.69
7.3.200.0090.01216.49
7.3.190.0040.01416.40
7.3.180.0040.01316.34
7.3.170.0100.00716.49
7.3.160.0130.01016.45
7.2.330.0140.00316.68
7.2.320.0180.00616.76
7.2.310.0100.00716.56
7.2.300.0140.00316.69
7.2.290.0100.02116.65
7.2.110.0750.01114.58
7.2.100.0490.00814.63
7.2.90.0770.00714.70
7.2.80.0400.00914.48
7.2.70.1050.01214.88
7.2.60.0480.00714.73
7.2.50.0460.00614.76
7.2.40.0340.00714.77
7.2.30.0590.00614.90
7.2.20.0560.00814.80
7.2.10.0630.00714.80
7.2.00.0460.00814.91
7.1.230.0670.00513.80
7.1.220.0730.01213.68
7.1.210.0380.00513.96
7.1.200.0440.00713.73
7.1.190.0420.00713.73
7.1.180.0370.00613.74
7.1.170.0390.00713.92
7.1.160.0490.00813.76
7.1.150.0480.01114.00
7.1.140.0910.00813.88
7.1.130.0540.00313.86
7.1.120.0430.00713.92
7.1.110.0590.01013.84
7.1.100.0700.00813.93
7.1.90.0410.00713.94
7.1.80.0470.00913.86
7.1.70.0810.00813.72
7.1.60.1140.01031.91
7.1.50.0700.01032.09
7.1.40.0770.01131.92
7.1.30.1670.01631.93
7.1.20.0970.01232.13
7.1.10.0630.00613.96
7.1.00.0770.00713.92
5.6.380.0030.01414.17

preferences:
60.18 ms | 400 KiB | 5 Q