3v4l.org

run code in 300+ PHP versions simultaneously
<?php $email = ""; if (!$email) { $errorMessage .= "<div class=\"error\">You must enter an e-mail address!</div>"; } elseif (!filter_var($email, FILTER_VALIDATE_EMAIL)) { $errorMessage .= "<div class=\"error\">You must enter a valid e-mail!</div>"; } echo $errorMessage; ?>

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.0030.01616.63
8.3.50.0150.00316.61
8.3.40.0150.00018.96
8.3.30.0100.00318.79
8.3.20.0040.00418.90
8.3.10.0080.00018.60
8.3.00.0040.00419.38
8.2.180.0150.00416.75
8.2.170.0070.00722.96
8.2.160.0120.00318.79
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0070.00021.03
8.2.110.0030.00720.94
8.2.100.0030.00917.84
8.2.90.0050.00218.16
8.2.80.0080.00018.91
8.2.70.0000.00817.46
8.2.60.0080.00017.88
8.2.50.0000.00717.91
8.2.40.0000.00819.60
8.2.30.0030.00517.72
8.2.20.0030.00717.82
8.2.10.0070.00017.61
8.2.00.0050.00217.70
8.1.280.0070.00725.92
8.1.270.0060.00323.99
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0100.00019.56
8.1.230.0060.00620.87
8.1.220.0030.00618.46
8.1.210.0000.00918.77
8.1.200.0090.00017.23
8.1.190.0080.00017.23
8.1.180.0000.00818.10
8.1.170.0050.00217.62
8.1.160.0000.00718.93
8.1.150.0040.00418.63
8.1.140.0060.00317.45
8.1.130.0020.00519.29
8.1.120.0040.00417.45
8.1.110.0040.00417.33
8.1.100.0000.00817.48
8.1.90.0000.00817.35
8.1.80.0070.00017.36
8.1.70.0030.00517.36
8.1.60.0060.00317.49
8.1.50.0070.00017.34
8.1.40.0080.00017.43
8.1.30.0040.00417.54
8.1.20.0000.00817.63
8.1.10.0000.00717.46
8.1.00.0050.00317.43
8.0.300.0040.00418.77
8.0.290.0030.00616.59
8.0.280.0030.00318.55
8.0.270.0040.00417.26
8.0.260.0030.00316.79
8.0.250.0040.00416.91
8.0.240.0040.00416.98
8.0.230.0040.00416.88
8.0.220.0000.00716.93
8.0.210.0040.00416.86
8.0.200.0020.00516.91
8.0.190.0000.00717.05
8.0.180.0000.00716.93
8.0.170.0040.00416.88
8.0.160.0040.00416.98
8.0.150.0070.00316.91
8.0.140.0050.00316.91
8.0.130.0000.00513.33
8.0.120.0080.00016.81
8.0.110.0000.00716.83
8.0.100.0040.00417.02
8.0.90.0000.00716.96
8.0.80.0040.01116.85
8.0.70.0040.00317.02
8.0.60.0080.00016.81
8.0.50.0050.00316.94
8.0.30.0040.01217.01
8.0.20.0060.01216.93
8.0.10.0020.00516.88
8.0.00.0060.01116.71
7.4.330.0030.00313.01
7.4.320.0000.00616.42
7.4.300.0000.00616.52
7.4.290.0100.00016.50
7.4.280.0040.00416.44
7.4.270.0000.00716.41
7.4.260.0000.00613.27
7.4.250.0030.00616.48
7.4.240.0070.00016.58
7.4.230.0070.00016.32
7.4.220.0070.01116.56
7.4.210.0160.00416.58
7.4.200.0030.00316.32
7.4.190.0000.00916.39
7.4.160.0110.00416.50
7.4.150.0090.00916.31
7.4.140.0120.00617.86
7.4.130.0000.02216.43
7.4.120.0100.00716.58
7.4.110.0090.00916.56
7.4.100.0100.00716.52
7.4.90.0060.01216.48
7.4.80.0070.01119.39
7.4.70.0110.00616.58
7.4.60.0070.01016.40
7.4.50.0040.00416.55
7.4.40.0120.00316.57
7.4.30.0040.01416.41
7.4.00.0030.01215.12
7.3.330.0060.00013.25
7.3.320.0000.00613.28
7.3.310.0000.00716.44
7.3.300.0000.00716.34
7.3.290.0060.01116.35
7.3.280.0110.00316.34
7.3.270.0150.00316.44
7.3.260.0100.00616.37
7.3.240.0100.00716.36
7.3.230.0060.01216.23
7.3.210.0100.00716.48
7.3.200.0100.00716.58
7.3.190.0080.00816.65
7.3.180.0090.00916.46
7.3.170.0030.01316.32
7.3.160.0100.01316.52
7.3.120.0060.00814.83
7.3.110.0030.01714.98
7.3.100.0060.00914.73
7.3.90.0070.01014.82
7.3.80.0110.00414.53
7.3.70.0040.00414.89
7.3.60.0110.00314.86
7.3.50.0000.01014.63
7.3.40.0040.00714.78
7.3.30.0070.01014.59
7.3.20.0100.00316.77
7.3.10.0060.00616.40
7.3.00.0030.00916.57
7.2.330.0120.00616.50
7.2.320.0100.00716.34
7.2.310.0070.01116.38
7.2.300.0040.01316.49
7.2.290.0100.00616.64
7.2.250.0060.01614.77
7.2.240.0100.01014.88
7.2.230.0000.01614.91
7.2.220.0100.00714.59
7.2.210.0000.01114.84
7.2.200.0100.00314.93
7.2.190.0060.00315.02
7.2.180.0040.01214.89
7.2.170.0070.01015.00
7.2.60.0000.01716.74
7.2.00.0000.01619.20
7.1.330.0110.00315.82
7.1.320.0030.01015.41
7.1.310.0090.00615.81
7.1.300.0030.01015.71
7.1.290.0080.00615.71
7.1.280.0040.01215.48
7.1.270.0080.00415.64
7.1.260.0000.00816.04
7.1.200.0150.00415.42
7.1.100.0000.01118.09
7.1.70.0000.00817.14
7.1.60.0060.01619.25
7.1.50.0150.00716.98
7.1.00.0000.06722.51
7.0.200.0030.00316.88
7.0.140.0030.08322.04
7.0.120.0000.07722.03
7.0.60.0030.07320.01
7.0.50.0070.05317.79
7.0.40.0100.04320.12
7.0.30.0200.04320.04
7.0.20.0270.04320.00
7.0.10.0100.07020.20
7.0.00.0100.08020.03
5.6.280.0170.06021.09
5.6.210.0070.06720.57
5.6.200.0130.07718.10
5.6.190.0130.07720.48
5.6.180.0400.06320.61
5.6.170.0230.07020.44
5.6.160.0130.03720.54
5.6.150.0070.05318.11
5.6.140.0000.04318.18
5.6.130.0100.08318.10
5.6.120.0030.07721.00
5.6.110.0030.09321.11
5.6.100.0030.06720.88
5.6.90.0000.07021.09
5.6.80.0100.06320.41
5.5.350.0030.08320.38
5.5.340.0070.08017.95
5.5.330.0030.04320.25
5.5.320.2170.04020.13
5.5.310.0370.06720.41
5.5.300.0100.07318.00
5.5.290.0070.04018.00
5.5.280.0000.06720.87
5.5.270.0100.07020.86
5.5.260.0070.08020.72
5.5.250.0070.08720.61
5.5.240.0100.07320.03
5.4.450.1170.03019.22
5.4.440.0470.05019.09
5.4.430.0570.04319.35
5.4.420.0630.04019.45
5.4.410.0670.04019.25
5.4.400.0400.04018.90
5.4.390.0830.03319.05
5.4.380.0730.03718.78
5.4.370.0630.04319.21
5.4.360.0770.04318.77
5.4.350.0500.04719.05
5.4.340.0700.04319.13
5.4.320.0770.03318.90
5.4.310.0700.04719.21
5.4.300.0800.04319.12
5.4.290.0230.05318.76
5.4.280.0870.03719.09
5.4.270.0770.03318.87
5.4.260.0730.04019.21
5.4.250.0770.04019.05
5.4.240.0670.03019.18
5.4.230.0730.03719.09
5.4.220.0530.03719.12
5.4.210.0330.04019.12
5.4.200.0530.04318.76
5.4.190.0370.04319.23
5.4.180.0730.04319.11
5.4.170.0730.03719.21
5.4.160.0870.03019.03
5.4.150.0270.03319.14
5.4.140.0430.04016.15
5.4.130.0670.03316.44
5.4.120.0630.03316.27
5.4.110.0730.03716.38
5.4.100.0670.03316.42
5.4.90.0630.03716.05
5.4.80.0770.03316.41
5.4.70.0430.04716.34
5.4.60.0700.02716.21
5.4.50.0870.03316.39
5.4.40.0300.03716.03
5.4.30.0870.03016.41
5.4.20.1070.02016.34
5.4.10.1000.02716.28
5.4.00.0830.03316.02
5.3.290.0530.04316.02
5.3.280.0300.04016.02
5.3.270.0570.05016.02
5.3.260.0770.03716.02
5.3.250.0570.04016.02
5.3.240.0730.05716.02
5.3.230.0870.03016.02
5.3.220.0200.04016.02
5.3.210.0700.04016.02
5.3.200.0970.02716.02
5.3.190.0630.04016.02
5.3.180.0570.05716.02
5.3.170.0500.03316.02
5.3.160.0870.03316.02
5.3.150.0500.03716.02
5.3.140.0830.03016.02
5.3.130.0900.04016.02
5.3.120.0770.03316.02
5.3.110.1000.03316.02
5.3.100.0200.03716.02
5.3.90.0670.03716.02
5.3.80.0630.03016.02
5.3.70.0600.03716.02
5.3.60.0670.03716.02
5.3.50.0770.03316.02
5.3.40.0600.03316.02
5.3.30.0270.04016.02
5.3.20.0900.03316.02
5.3.10.0330.03316.02
5.3.00.0600.04716.02
5.2.170.0300.03016.02
5.2.160.0630.03016.02
5.2.150.0700.03716.02
5.2.140.0400.03316.02
5.2.130.0630.03016.02
5.2.120.0600.03316.02
5.2.110.0270.03316.02
5.2.100.0370.03016.02
5.2.90.0700.03016.02
5.2.80.0630.03016.02
5.2.70.0370.03016.02
5.2.60.0370.03716.02
5.2.50.0630.02016.02
5.2.40.0430.02716.02
5.2.30.0230.03316.02
5.2.20.0370.03016.02
5.2.10.0430.02716.02
5.2.00.0500.03016.02
5.1.60.0470.01316.02
5.1.50.0170.02716.02
5.1.40.0600.02316.02
5.1.30.0300.02716.02
5.1.20.0300.02716.02
5.1.10.0230.02716.02
5.1.00.0630.03316.02
5.0.50.0070.02016.02
5.0.40.0270.01716.02
5.0.30.0170.03316.02
5.0.20.0070.02716.02
5.0.10.0130.02016.02
5.0.00.0300.02716.02
4.4.90.0130.01716.02
4.4.80.0230.02016.02
4.4.70.0300.01016.02
4.4.60.0100.01716.02
4.4.50.0170.02016.02
4.4.40.0170.02716.02
4.4.30.0270.01316.02
4.4.20.0130.01316.02
4.4.10.0370.03716.02
4.4.00.0200.02716.02
4.3.110.0230.01016.02
4.3.100.0200.01316.02
4.3.90.0070.01716.02
4.3.80.0230.02316.02
4.3.70.0170.01316.02
4.3.60.0200.01316.02
4.3.50.0270.02016.02
4.3.40.0230.02716.02
4.3.30.0030.01716.02
4.3.20.0100.01716.02
4.3.10.0000.01316.02
4.3.00.0200.01316.02

preferences:
45.79 ms | 400 KiB | 5 Q