3v4l.org

run code in 300+ PHP versions simultaneously
<?php function isValidEmail($email){ return filter_var($email, FILTER_VALIDATE_EMAIL); } $test = "test"; echo $test . " : " . isValidEmail($test); $test = "test'@gmail"; echo $test . " : " . isValidEmail($test); $test = "test@gamil.com"; echo $test . " : " . isValidEmail($test);

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.00919.06
8.3.50.0080.01522.37
8.3.40.0160.00319.29
8.3.30.0100.00619.48
8.3.20.0040.00420.73
8.3.10.0000.00923.98
8.3.00.0030.00619.93
8.2.180.0140.01016.88
8.2.170.0120.00422.96
8.2.160.0110.01121.57
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0060.00319.98
8.2.110.0050.00522.52
8.2.100.0090.00319.95
8.2.90.0000.00819.77
8.2.80.0000.00918.43
8.2.70.0030.00618.00
8.2.60.0000.00918.30
8.2.50.0090.00018.25
8.2.40.0030.00518.72
8.2.30.0040.00418.53
8.2.20.0030.00618.17
8.2.10.0040.00418.52
8.2.00.0050.00318.14
8.1.280.0180.00425.92
8.1.270.0060.00324.20
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0030.00624.29
8.1.230.0060.00619.47
8.1.220.0000.00818.16
8.1.210.0040.00418.77
8.1.200.0050.00517.98
8.1.190.0040.00418.00
8.1.180.0000.00819.14
8.1.170.0030.00619.05
8.1.160.0000.00922.13
8.1.150.0080.00019.18
8.1.140.0000.00817.77
8.1.130.0040.00418.00
8.1.120.0050.00317.78
8.1.110.0050.00517.66
8.1.100.0040.00417.64
8.1.90.0000.00817.70
8.1.80.0050.00317.82
8.1.70.0050.00217.63
8.1.60.0040.00417.96
8.1.50.0060.00317.77
8.1.40.0000.00917.79
8.1.30.0060.00317.84
8.1.20.0040.00418.00
8.1.10.0000.00817.76
8.1.00.0070.00719.99
8.0.300.0060.00318.77
8.0.290.0040.00417.43
8.0.280.0050.00318.63
8.0.270.0040.00417.45
8.0.260.0030.00317.34
8.0.250.0040.00417.26
8.0.240.0090.00017.26
8.0.230.0030.00517.17
8.0.220.0070.00017.20
8.0.210.0000.00817.15
8.0.200.0030.00517.25
8.0.190.0060.00317.16
8.0.180.0030.00517.21
8.0.170.0060.00317.15
8.0.160.0050.00317.12
8.0.150.0000.00817.03
8.0.140.0040.00417.14
8.0.130.0060.00013.66
8.0.120.0090.00017.19
8.0.110.0040.00417.27
8.0.100.0090.00017.29
8.0.90.0080.00017.27
8.0.80.0060.00917.25
8.0.70.0000.00817.38
8.0.60.0080.00017.14
8.0.50.0040.00417.29
8.0.30.0110.00817.43
8.0.20.0110.00917.40
8.0.10.0080.00017.31
8.0.00.0030.01517.24
7.4.330.0000.00615.37
7.4.320.0070.00017.05
7.4.300.0030.00316.84
7.4.290.0050.00216.93
7.4.280.0040.00417.01
7.4.270.0000.00716.95
7.4.260.0050.00216.92
7.4.250.0040.00416.92
7.4.240.0000.00716.87
7.4.230.0000.00717.02
7.4.220.0130.01016.89
7.4.210.0100.01017.03
7.4.200.0070.00016.93
7.4.160.0140.00416.95
7.4.150.0060.01217.40
7.4.140.0110.01117.86
7.4.130.0080.01016.75
7.4.120.0110.00716.97
7.4.110.0150.00317.03
7.4.100.0140.00416.77
7.4.90.0100.01416.83
7.4.80.0120.01219.39
7.4.70.0060.01216.80
7.4.60.0110.00817.03
7.4.50.0050.00316.67
7.4.40.0070.01016.77
7.4.30.0070.01016.75
7.4.00.0030.01015.36
7.3.330.0000.00513.67
7.3.320.0030.00313.56
7.3.310.0040.00416.57
7.3.300.0040.00416.56
7.3.290.0070.01216.63
7.3.280.0150.00516.66
7.3.270.0150.00317.40
7.3.260.0110.00716.84
7.3.250.0130.00916.84
7.3.240.0070.01116.70
7.3.230.0100.00716.77
7.3.210.0120.00816.68
7.3.200.0110.00619.39
7.3.190.0100.01316.72
7.3.180.0160.00316.75
7.3.170.0110.01416.55
7.3.160.0090.00916.73
7.3.10.0080.01116.61
7.3.00.0130.00716.40
7.2.330.0070.01216.92
7.2.320.0130.00716.86
7.2.310.0110.00717.02
7.2.300.0080.00817.02
7.2.290.0000.01816.93
7.2.130.0110.00716.61
7.2.120.0090.01316.52
7.2.110.0130.01016.36
7.2.100.0140.00616.63
7.2.90.0070.01116.98
7.2.80.0170.00516.74
7.2.70.0040.01517.24
7.2.60.0170.00816.98
7.2.50.0170.00716.75
7.2.40.0210.00416.91
7.2.30.0140.01117.20
7.2.20.0120.00816.92
7.2.10.0110.01116.94
7.2.00.0010.01318.40
7.1.250.0090.00915.66
7.1.100.0000.01118.35
7.1.70.0050.00517.42
7.1.60.0100.01019.29
7.1.50.0060.00617.03
7.1.00.0070.07322.67
7.0.200.0530.00915.07
7.0.140.0070.07022.25
7.0.60.0030.04320.20
7.0.50.0030.04018.05
7.0.40.0100.08720.39
7.0.30.0470.04720.54
7.0.20.0330.07720.47
7.0.10.0170.08020.34
7.0.00.0200.04720.34
5.6.280.0030.07021.11
5.6.210.0100.08320.67
5.6.200.0100.04018.24
5.6.190.0070.06020.65
5.6.180.3170.04320.58
5.6.170.0230.04020.59
5.6.160.0030.05720.67
5.6.150.0070.03718.23
5.6.140.0070.04018.23
5.6.130.0070.04018.23
5.6.120.0100.08021.01
5.6.110.0070.09021.00
5.6.100.0200.06720.88
5.6.90.0200.07320.99
5.6.80.0070.08020.41
5.6.70.0430.05320.55
5.5.350.0270.03720.43
5.5.340.0070.07318.00
5.5.330.0030.07020.45
5.5.320.0330.07320.39
5.5.310.0130.04320.55
5.5.300.0070.05018.01
5.5.290.0030.04018.11
5.5.280.0030.07320.79
5.5.270.0130.08021.00
5.5.260.0070.03720.70
5.5.250.0000.05020.61
5.5.240.0270.08720.20
5.4.450.0130.05719.64
5.4.440.0900.06319.63
5.4.430.0070.06019.54
5.4.420.0100.05719.46
5.4.410.0100.05319.27
5.4.400.0170.05019.17
5.4.390.0130.05019.21
5.4.380.0100.06018.58
5.4.370.0130.05718.52
5.4.360.0170.05018.86
5.4.350.0100.04313.84
5.4.340.0070.05013.98
5.4.320.0130.03714.47
5.4.310.0070.04314.43
5.4.300.0030.04714.30
5.4.290.0000.05014.55
5.4.280.0100.04314.21
5.4.270.0130.04314.22
5.4.260.0070.04714.29
5.4.250.0100.03714.14
5.4.240.0100.04014.14
5.4.230.0170.04014.20
5.4.220.0100.04014.43
5.4.210.0130.03714.18
5.4.200.0070.04714.26
5.4.190.0170.03014.31
5.4.180.0130.03714.18
5.4.170.0170.03314.15
5.4.160.0070.04014.18
5.4.150.0070.04314.13
5.4.140.0170.04313.88
5.4.130.0170.03313.99
5.4.120.0200.04013.83
5.4.110.0070.04313.83
5.4.100.0070.04013.77
5.4.90.0170.04713.84
5.4.80.0100.04313.77
5.4.70.0170.04313.98
5.4.60.0070.04713.83
5.4.50.0100.03313.95
5.4.40.0070.05313.82
5.4.30.0070.05013.84
5.4.20.0100.04013.81
5.4.10.0130.03313.75
5.4.00.0030.05313.36
5.3.290.0200.04714.88
5.3.280.0130.04714.68
5.3.270.0200.04714.86
5.3.260.0100.05014.75
5.3.250.0170.05014.86
5.3.240.0100.06014.65
5.3.230.0170.04714.82
5.3.220.0300.03714.71
5.3.210.0100.04314.71
5.3.200.0130.03314.62
5.3.190.0030.04714.80
5.3.180.0100.04314.62
5.3.170.0100.04014.61
5.3.160.0200.03014.82
5.3.150.0030.04714.68
5.3.140.0030.05014.70
5.3.130.0130.04714.62
5.3.120.0270.06014.60
5.3.110.0100.04714.71
5.3.100.0330.03714.13
5.3.90.0170.05714.26
5.3.80.0170.04014.21
5.3.70.0100.04014.09
5.3.60.0200.04314.34
5.3.50.0100.04314.04
5.3.40.0200.03014.02
5.3.30.0130.04014.02
5.3.20.0130.04313.80
5.3.10.0230.04013.70
5.3.00.0200.04713.64
5.2.170.0230.04311.33
5.2.160.0000.04711.21
5.2.150.0070.03711.29
5.2.140.0070.04311.17
5.2.130.0070.04011.24
5.2.120.0230.02311.20
5.2.110.0070.03011.21
5.2.100.0100.03011.16
5.2.90.0130.03011.21
5.2.80.0100.03711.19
5.2.70.0100.03011.12
5.2.60.0100.03711.16
5.2.50.0130.04711.30
5.2.40.0170.03011.11
5.2.30.0070.03311.00
5.2.20.0030.04011.08
5.2.10.0100.03310.92
5.2.00.0070.04010.94
5.1.60.0130.03010.03
5.1.50.0070.0339.97
5.1.40.0030.0309.95
5.1.30.0100.02310.50
5.1.20.0070.02710.32
5.1.10.0030.03010.04
5.1.00.0070.02710.03
5.0.50.0100.0178.52
5.0.40.0000.0278.58
5.0.30.0000.0408.35
5.0.20.0000.0308.34
5.0.10.0070.0238.20
5.0.00.0100.0278.14
4.4.90.0030.0175.93
4.4.80.0000.0235.82
4.4.70.0000.0205.88
4.4.60.0030.0175.83
4.4.50.0030.0205.88
4.4.40.0030.0305.82
4.4.30.0000.0175.86
4.4.20.0030.0175.87
4.4.10.0000.0205.89
4.4.00.0030.0305.87
4.3.110.0000.0235.79
4.3.100.0070.0175.81
4.3.90.0000.0205.74
4.3.80.0070.0305.71
4.3.70.0000.0205.77
4.3.60.0030.0175.74
4.3.50.0070.0135.73
4.3.40.0070.0235.80
4.3.30.0000.0174.49
4.3.20.0000.0234.64
4.3.10.0000.0234.42
4.3.00.0030.0206.93

preferences:
63.75 ms | 401 KiB | 5 Q