3v4l.org

run code in 300+ PHP versions simultaneously
<?php class InvalidPage extends Exception {} class PageNotAnInteger extends InvalidPage {} function validateNumber($number) { $number = filter_var($number, FILTER_VALIDATE_INT); if(!$number) { throw new PageNotAnInteger('That dddddpage number is not an integer'); } } validateNumber('a0');

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.40.0150.00018.98
8.3.30.0030.01019.18
8.3.20.0040.00420.20
8.3.10.0040.00423.47
8.3.00.0050.00322.35
8.2.170.0140.00022.96
8.2.160.0100.00720.18
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0050.00326.16
8.2.120.0040.00422.27
8.2.110.0000.00922.07
8.2.100.0090.00317.97
8.2.90.0000.00719.27
8.2.80.0000.00817.97
8.2.70.0000.00817.63
8.2.60.0070.00417.93
8.2.50.0000.00818.07
8.2.40.0060.00320.01
8.2.30.0000.00718.06
8.2.20.0000.00717.59
8.2.10.0070.00017.64
8.2.00.0020.00517.73
8.1.270.0090.00023.92
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0030.01223.84
8.1.230.0060.00619.08
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.38
8.1.190.0040.00417.52
8.1.180.0060.00318.10
8.1.170.0060.00318.53
8.1.160.0050.00221.98
8.1.150.0040.00418.58
8.1.140.0040.00417.43
8.1.130.0040.00417.73
8.1.120.0050.00217.47
8.1.110.0000.00817.34
8.1.100.0040.00417.46
8.1.90.0040.00417.47
8.1.80.0000.00717.38
8.1.70.0000.00717.43
8.1.60.0040.00417.59
8.1.50.0040.00417.50
8.1.40.0060.00317.37
8.1.30.0040.00417.60
8.1.20.0000.00817.64
8.1.10.0040.00417.46
8.1.00.0040.00417.41
8.0.300.0070.00018.77
8.0.290.0040.00417.05
8.0.280.0040.00318.34
8.0.270.0070.00017.23
8.0.260.0000.00716.88
8.0.250.0040.00417.02
8.0.240.0040.00417.01
8.0.230.0040.00416.96
8.0.220.0030.00316.93
8.0.210.0030.00316.79
8.0.200.0030.00317.03
8.0.190.0000.00717.01
8.0.180.0000.00816.90
8.0.170.0040.00417.05
8.0.160.0000.00816.93
8.0.150.0040.00416.93
8.0.140.0030.00516.93
8.0.130.0030.00313.42
8.0.120.0040.00416.90
8.0.110.0030.00316.88
8.0.100.0070.00017.02
8.0.90.0050.00316.83
8.0.80.0030.01116.98
8.0.70.0050.00216.77
8.0.60.0050.00216.95
8.0.50.0040.00416.95
8.0.30.0180.00916.96
8.0.20.0080.01217.40
8.0.10.0050.00317.06
8.0.00.0060.01216.91
7.4.330.0020.00215.02
7.4.320.0000.00616.48
7.4.300.0030.00316.59
7.4.290.0030.00316.60
7.4.280.0030.00316.41
7.4.270.0000.00616.62
7.4.260.0000.00716.50
7.4.250.0050.00316.48
7.4.240.0010.00616.57
7.4.230.0030.00316.55
7.4.220.0140.00416.51
7.4.210.0060.00816.58
7.4.200.0070.00016.66
7.4.190.0000.00716.50
7.4.160.0060.01016.78
7.4.150.0100.00717.40
7.4.140.0110.00617.86
7.4.130.0110.00516.48
7.4.120.0080.01016.60
7.4.110.0110.00616.67
7.4.100.0150.00616.57
7.4.90.0030.01316.49
7.4.80.0110.00719.39
7.4.70.0060.01016.57
7.4.60.0100.01016.49
7.4.50.0080.00016.56
7.4.40.0070.01022.77
7.4.30.0130.00416.45
7.4.00.0070.01015.12
7.3.330.0000.00513.16
7.3.320.0030.00313.18
7.3.310.0030.00316.34
7.3.300.0000.00616.31
7.3.290.0040.01116.37
7.3.280.0040.01216.35
7.3.270.0090.00917.40
7.3.260.0090.00916.36
7.3.250.0120.00516.33
7.3.240.0150.00316.34
7.3.230.0180.00316.60
7.3.210.0030.01716.47
7.3.200.0150.00419.39
7.3.190.0070.01516.62
7.3.180.0100.00616.63
7.3.170.0120.00316.52
7.3.160.0080.00716.32
7.3.120.0030.00914.77
7.3.10.0110.00616.68
7.3.00.0060.01416.61
7.2.330.0060.01216.50
7.2.320.0130.00316.80
7.2.310.0110.01116.64
7.2.300.0080.00816.58
7.2.290.0100.00916.51
7.2.130.0220.00016.72
7.2.120.0080.00516.98
7.2.110.0070.00716.71
7.2.100.0060.00816.81
7.2.90.0040.01117.02
7.2.80.0090.00017.06
7.2.70.0070.00716.63
7.2.60.0050.00716.88
7.2.50.0080.00816.62
7.2.40.0060.00916.80
7.2.30.0030.00716.92
7.2.20.0000.01417.02
7.2.10.0060.00916.89
7.2.00.0030.00716.82
7.1.250.0150.00415.70
7.1.200.0030.01015.53
7.1.70.0000.00916.95
7.1.60.0160.00619.29
7.1.50.0160.01934.80
7.1.00.0030.07322.36
7.0.200.0060.00316.83
7.0.140.0070.06722.10
7.0.60.0030.04019.94
7.0.50.0100.03317.86
7.0.40.0130.07720.09
7.0.30.0370.03720.23
7.0.20.0300.07720.08
7.0.10.0070.07720.29
7.0.00.0130.05320.09
5.6.280.0070.07021.12
5.6.210.0100.08020.62
5.6.200.0030.07018.15
5.6.190.0170.07320.50
5.6.180.0230.06020.45
5.6.170.0200.05320.62
5.6.160.0030.08720.56
5.6.150.0100.08018.16
5.6.140.0170.07318.25
5.6.130.0030.04018.12
5.6.120.0100.08021.00
5.6.110.0030.06721.11
5.6.100.0100.05321.10
5.6.90.0030.07721.01
5.6.80.0070.04020.50
5.6.70.4430.04020.29
5.5.350.0070.08320.39
5.5.340.0070.05318.09
5.5.330.0070.04020.27
5.5.320.0230.03720.35
5.5.310.0330.07320.25
5.5.300.0030.04018.08
5.5.290.0000.06718.08
5.5.280.0170.07320.82
5.5.270.0030.06020.77
5.5.260.0030.06320.80
5.5.250.0130.07720.56
5.5.240.0070.06720.36
5.4.450.1770.04319.41
5.4.440.1630.05019.54
5.4.430.1430.04019.54
5.4.420.1730.05019.63
5.4.410.1730.04719.10
5.4.400.1470.04019.12
5.4.390.1530.03319.33
5.4.380.1870.04019.16
5.4.370.2000.03719.00
5.4.360.1800.05018.75
5.4.350.1800.04319.21
5.4.340.1630.03019.06
5.4.320.1770.04319.06
5.4.310.1670.04319.33
5.4.300.1600.03319.02
5.4.290.1600.04018.99
5.4.280.1630.03719.04
5.4.270.1630.03319.30
5.4.260.1870.04318.97
5.4.250.1630.03719.21
5.4.240.2100.04018.74
5.4.230.1570.04018.79
5.4.220.1830.03719.15
5.4.210.1530.04019.02
5.4.200.1500.04019.05
5.4.190.1470.03719.15
5.4.180.1600.03318.74
5.4.170.0030.04019.20
5.4.160.0030.03719.14
5.4.150.0500.04019.10
5.4.140.1600.03016.35
5.4.130.1430.03316.55
5.4.120.1530.03316.71
5.4.110.1530.03716.50
5.4.100.1970.03016.56
5.4.90.1630.04316.59
5.4.80.1870.03716.62
5.4.70.1900.05016.59
5.4.60.1830.03316.57
5.4.50.1800.03716.38
5.4.40.1470.04016.23
5.4.30.0130.03316.42
5.4.20.0030.07316.42
5.4.10.0570.04716.56
5.4.00.1630.04715.80
5.3.290.1730.05014.66
5.3.280.1730.04714.69
5.3.270.1770.04714.70
5.3.260.1630.05014.52
5.3.250.1430.04014.52
5.3.240.1700.04714.76
5.3.230.1630.03714.61
5.3.220.1700.04314.69
5.3.210.1700.04714.60
5.3.200.1500.03314.59
5.3.190.0130.05714.58
5.3.180.0230.03714.59
5.3.170.0170.07014.57
5.3.160.0170.04714.57
5.3.150.0200.08314.49
5.3.140.0270.06314.64
5.3.130.0230.06314.53
5.3.120.0270.06714.63
5.3.110.0430.03314.67
5.3.100.0270.04714.09
5.3.90.0100.04014.12
5.3.80.0270.06314.11
5.3.70.0200.07014.14
5.3.60.0230.04714.02
5.3.50.0200.07014.04
5.3.40.0230.07013.97
5.3.30.0270.05013.84
5.3.20.0200.04013.61
5.3.10.0200.06713.75
5.3.00.0230.06713.68
5.2.170.0230.04711.14
5.2.160.0170.05011.09
5.2.150.0170.04711.17
5.2.140.0130.03711.11
5.2.130.0170.05711.03
5.2.120.0130.03311.03
5.2.110.0230.05711.06
5.2.100.0230.05311.13
5.2.90.0300.04311.07
5.2.80.0200.05311.25
5.2.70.0230.02711.01
5.2.60.0170.05711.28
5.2.50.0170.03011.00
5.2.40.0230.05011.08
5.2.30.0100.04010.95
5.2.20.0100.03010.94
5.2.10.0230.04711.09
5.2.00.0100.05310.65
5.1.60.0170.0439.91
5.1.50.0200.04710.00
5.1.40.0100.03310.08
5.1.30.0130.02710.42
5.1.20.0200.01710.41
5.1.10.0130.03310.23
5.1.00.0130.02310.16
5.0.50.0070.0208.53
5.0.40.0070.0178.65
5.0.30.0070.0308.11
5.0.20.0100.0208.11
5.0.10.0200.0208.31
5.0.00.0130.0508.18
4.4.90.0070.0378.02
4.4.80.0070.0208.02
4.4.70.0070.0378.02
4.4.60.0000.0338.02
4.4.50.0030.0278.02
4.4.40.0070.0308.02
4.4.30.0100.0138.02
4.4.20.0030.0178.02
4.4.10.0030.0178.02
4.4.00.0070.0408.02
4.3.110.0000.0208.02
4.3.100.0070.0278.02
4.3.90.0000.0208.02
4.3.80.0030.0478.02
4.3.70.0030.0178.02
4.3.60.0100.0278.02
4.3.50.0100.0208.02
4.3.40.0100.0508.02
4.3.30.0070.0178.02
4.3.20.0030.0278.02
4.3.10.0070.0208.02
4.3.00.0030.0378.02

preferences:
41.91 ms | 400 KiB | 5 Q