3v4l.org

run code in 300+ PHP versions simultaneously
<?php function validateNumber($number) { try { //echo $number = (int)$number; var_dump(filter_var($number, FILTER_VALIDATE_INT)); var_dump(ctype_digit ($number)); } catch(Exception $e) { throw new PageNotAnInteger('That page number is not an integer'); } } validateNumber('34.6');

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.0040.01218.53
8.3.50.0080.01221.14
8.3.40.0140.00318.69
8.3.30.0130.00020.33
8.3.20.0070.00020.09
8.3.10.0080.00020.79
8.3.00.0000.00822.43
8.2.180.0060.00916.63
8.2.170.0070.00722.96
8.2.160.0100.00322.13
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0000.00820.80
8.2.110.0050.00320.35
8.2.100.0090.00317.59
8.2.90.0080.00018.97
8.2.80.0000.00919.32
8.2.70.0060.00317.38
8.2.60.0060.00317.80
8.2.50.0000.00818.07
8.2.40.0000.00918.03
8.2.30.0000.00719.49
8.2.20.0040.00417.50
8.2.10.0000.00817.54
8.2.00.0040.00417.53
8.1.280.0070.00725.92
8.1.270.0030.00523.99
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0070.00318.73
8.1.230.0120.00017.70
8.1.220.0040.00417.74
8.1.210.0070.00318.77
8.1.200.0040.00417.23
8.1.190.0080.00017.27
8.1.180.0050.00318.10
8.1.170.0000.00818.50
8.1.160.0050.00318.77
8.1.150.0000.00718.42
8.1.140.0050.00317.38
8.1.130.0030.00317.68
8.1.120.0070.00017.35
8.1.110.0030.00517.37
8.1.100.0000.00717.26
8.1.90.0040.00317.32
8.1.80.0000.00717.23
8.1.70.0040.00417.34
8.1.60.0070.00317.59
8.1.50.0070.00017.35
8.1.40.0060.00317.45
8.1.30.0040.00417.54
8.1.20.0050.00317.48
8.1.10.0000.00717.47
8.1.00.0040.00417.39
8.0.300.0050.00318.77
8.0.290.0000.00716.80
8.0.280.0030.00318.32
8.0.270.0070.00017.14
8.0.260.0030.00316.73
8.0.250.0070.00016.85
8.0.240.0080.00016.84
8.0.230.0000.00716.72
8.0.220.0000.00716.74
8.0.210.0000.00716.66
8.0.200.0000.00716.82
8.0.190.0070.00016.76
8.0.180.0070.00016.67
8.0.170.0030.00616.67
8.0.160.0070.00016.69
8.0.150.0000.00716.69
8.0.140.0030.00716.75
8.0.130.0000.00513.19
8.0.120.0040.00416.69
8.0.110.0040.00416.73
8.0.100.0030.00616.73
8.0.90.0040.00416.67
8.0.80.0030.01216.75
8.0.70.0070.00016.71
8.0.60.0000.00716.66
8.0.50.0040.00416.80
8.0.30.0060.01216.80
8.0.20.0080.01017.40
8.0.10.0050.00216.77
8.0.00.0120.00516.72
7.4.330.0050.00016.79
7.4.320.0030.00316.52
7.4.300.0030.00316.44
7.4.290.0000.00716.46
7.4.280.0030.00316.47
7.4.270.0050.00316.46
7.4.260.0030.00313.24
7.4.250.0030.00316.49
7.4.240.0070.00016.53
7.4.230.0030.00316.33
7.4.220.0100.00716.55
7.4.210.0080.00716.50
7.4.200.0030.00316.52
7.4.190.0070.00016.41
7.4.160.0070.01016.41
7.4.150.0070.01717.40
7.4.140.0100.01217.86
7.4.130.0120.00516.42
7.4.120.0070.01116.40
7.4.110.0100.00716.50
7.4.100.0070.01016.38
7.4.90.0110.00616.32
7.4.80.0000.01719.39
7.4.70.0090.00616.47
7.4.60.0120.00616.22
7.4.50.0000.00816.29
7.4.40.0070.01022.77
7.4.30.0080.00816.32
7.4.00.0060.00914.76
7.3.330.0000.00613.24
7.3.320.0030.00313.16
7.3.310.0040.00416.05
7.3.300.0070.00016.29
7.3.290.0080.01016.16
7.3.280.0100.00716.19
7.3.270.0120.00417.40
7.3.260.0120.00618.24
7.3.250.0140.00416.31
7.3.240.0130.00316.31
7.3.230.0100.00616.45
7.3.210.0070.01016.49
7.3.200.0120.01219.39
7.3.190.0190.00616.33
7.3.180.0070.01316.22
7.3.170.0100.00716.35
7.3.160.0090.00916.23
7.3.120.0070.00714.56
7.2.330.0060.01116.52
7.2.320.0070.01016.33
7.2.310.0110.00616.61
7.2.300.0090.01016.56
7.2.290.0030.01416.64
7.2.110.0240.00316.35
7.2.100.0090.00616.53
7.2.90.0030.01516.26
7.2.80.0100.01016.44
7.2.70.0030.01216.41
7.2.60.0110.00316.75
7.2.50.0100.00316.84
7.2.40.0120.00616.57
7.2.30.0120.00916.46
7.2.20.0140.00316.71
7.2.10.0140.00016.56
7.2.00.0120.01017.96
7.1.230.0120.00315.70
7.1.220.0100.00615.53
7.1.210.0090.00615.70
7.1.200.0100.00315.56
7.1.190.0120.00315.12
7.1.180.0120.00615.32
7.1.170.0150.00315.66
7.1.160.0100.00715.46
7.1.150.0100.01015.41
7.1.140.0170.00015.57
7.1.130.0090.00915.68
7.1.120.0120.00815.63
7.1.110.0120.00615.49
7.1.100.0080.00716.58
7.1.90.0180.00315.54
7.1.80.0060.00615.70
7.1.70.0170.00516.47
7.1.60.0130.01017.33
7.1.50.0160.00716.24
7.1.40.1180.01015.79
7.1.30.0070.01315.88
7.1.20.0070.00715.84
7.1.10.0120.00615.82
7.1.00.0070.02019.00
7.0.310.0060.00815.09
7.0.300.0080.00615.21
7.0.290.0030.01015.38
7.0.280.0060.00615.27
7.0.270.0070.00715.23
7.0.260.0100.00315.31
7.0.250.0080.00615.13
7.0.240.0160.00315.46
7.0.230.0080.00515.45
7.0.220.0160.00315.13
7.0.210.0030.00915.01
7.0.200.0310.00514.98
7.0.190.0060.00615.23
7.0.180.0130.00315.40
7.0.170.0100.00715.32
7.0.160.0090.00615.00
7.0.150.0070.00315.40
7.0.140.0060.04118.64
7.0.130.0120.00315.29
7.0.120.0120.00615.17
7.0.110.0100.00715.32
7.0.100.0160.04217.49
7.0.90.0050.04617.66
7.0.80.0030.04817.65
7.0.70.0120.04017.57
7.0.60.0060.03317.39
7.0.50.0120.04117.80
7.0.40.0100.04316.58
7.0.30.0060.04516.62
7.0.20.0050.04516.51
7.0.10.0050.04616.53
7.0.00.0040.03616.56
5.6.380.0000.01214.32
5.6.370.0070.00713.81
5.6.360.0060.01013.77
5.6.350.0090.00313.62
5.6.340.0070.00714.13
5.6.330.0000.01413.63
5.6.320.0050.00814.07
5.6.310.0100.00314.32
5.6.300.0060.00614.25
5.6.290.0000.00814.10
5.6.280.0080.03817.52
5.6.270.0130.00014.07
5.6.260.0090.00614.21
5.6.250.0050.05017.51
5.6.240.0080.04117.35
5.6.230.0130.04017.38
5.6.220.0100.04317.45
5.6.210.0060.04317.40
5.6.200.0130.03717.38
5.6.190.0070.04117.53
5.6.180.0080.02617.53
5.6.170.0110.04017.58
5.6.160.0110.04017.44
5.6.150.0150.03517.40
5.6.140.0050.04417.55
5.6.130.0070.04217.27
5.6.120.0080.04417.48
5.6.110.0060.04517.40
5.6.100.0110.04317.30
5.6.90.0030.04917.43
5.6.80.0080.02316.98
5.6.70.0100.03817.05
5.6.60.0110.04016.88
5.6.50.0110.03517.18
5.6.40.0100.03517.29
5.6.30.0060.03617.11
5.6.20.0060.04117.29
5.6.10.0080.02217.16
5.6.00.0170.02017.10
5.5.380.0060.04415.68
5.5.370.0050.04515.77
5.5.360.0070.03015.79
5.5.350.0080.04015.50
5.5.340.0070.04315.65
5.5.330.0090.04215.77
5.5.320.0110.03815.97
5.5.310.0050.04315.79
5.5.300.0030.02815.63
5.5.290.0050.04315.82
5.5.280.0070.04415.55
5.5.270.0120.03315.72
5.5.260.0080.03815.71
5.5.250.0070.04015.79
5.5.240.0070.03715.45
5.5.230.0060.02815.33
5.5.220.0050.04515.25
5.5.210.0050.02615.34
5.5.200.0050.04315.44
5.5.190.0070.03215.39
5.5.180.0080.03015.29
5.5.170.0100.00314.15
5.5.160.0100.04115.65
5.5.150.0050.03815.39
5.5.140.0080.03515.53
5.5.130.0080.02615.62
5.5.120.0070.04315.44
5.5.110.0070.02515.32
5.5.100.0100.03515.42
5.5.90.0130.02215.33
5.5.80.0110.03415.52
5.5.70.0150.03315.51
5.5.60.0010.03115.49
5.5.50.0080.04215.40
5.5.40.0080.02515.31
5.5.30.0120.03715.39
5.5.20.0100.04515.45
5.5.10.0120.03915.30
5.5.00.0060.04615.39
5.4.450.0100.03915.03
5.4.440.0110.03314.94
5.4.430.0050.03714.98
5.4.420.0080.03014.96
5.4.410.0030.04214.78
5.4.400.0060.04014.89
5.4.390.0070.03614.80
5.4.380.0100.03614.93
5.4.370.0070.04014.83
5.4.360.0040.04314.84
5.4.350.0060.04014.93
5.4.340.0090.02114.91
5.4.330.0060.00310.88
5.4.320.0060.04014.98
5.4.310.0090.03615.01
5.4.300.0090.02114.87
5.4.290.0070.03914.90
5.4.280.0050.02614.85
5.4.270.0080.03314.87
5.4.260.0080.04115.04
5.4.250.0110.04215.05
5.4.240.0040.04314.68
5.4.230.0090.03015.20
5.4.220.0100.03514.87
5.4.210.0080.04515.02
5.4.200.0070.04414.78
5.4.190.0120.02414.84
5.4.180.0080.04215.08
5.4.170.0080.04214.86
5.4.160.0050.04215.10
5.4.150.0130.03714.96
5.4.140.0060.03913.42
5.4.130.0070.03413.65
5.4.120.0090.04013.54
5.4.110.0110.02313.72
5.4.100.0120.03713.50
5.4.90.0110.02613.74
5.4.80.0100.03513.56
5.4.70.0140.02713.73
5.4.60.0090.01813.61
5.4.50.0060.03413.52
5.4.40.0060.04113.75
5.4.30.0110.03513.64
5.4.20.0080.04213.70
5.4.10.0070.02213.66
5.4.00.0080.04013.29
5.3.290.0080.04012.65
5.3.280.0060.03112.40
5.3.270.0100.03712.54
5.3.260.0090.04112.50
5.3.250.0080.03812.52
5.3.240.0070.04012.29
5.3.230.0030.03912.51
5.3.220.0070.04012.43
5.3.210.0080.02512.33
5.3.200.0090.04012.34
5.3.190.0020.04912.48
5.3.180.0040.03312.57
5.3.170.0110.04312.51
5.3.160.0080.03312.57
5.3.150.0170.03312.45
5.3.140.0060.03612.50
5.3.130.0060.04112.49
5.3.120.0070.04412.50
5.3.110.0070.03412.53
5.3.100.0100.04212.15
5.3.90.0100.04012.30
5.3.80.0120.03512.09
5.3.70.0100.04012.19
5.3.60.0100.04112.10
5.3.50.0080.03212.24
5.3.40.0090.03812.13
5.3.30.0090.02212.12
5.3.20.0100.03911.93
5.3.10.0090.02311.85
5.3.00.0120.02311.81
5.2.170.0100.02910.26
5.2.160.0180.02210.25
5.2.150.0070.02810.34
5.2.140.0080.03110.23
5.2.130.0070.03510.08
5.2.120.0080.02310.20
5.2.110.0050.02910.13
5.2.100.0050.02310.13
5.2.90.0040.02210.30
5.2.80.0050.01710.13
5.2.70.0060.01710.25
5.2.60.0050.0199.98
5.2.50.0050.01810.11
5.2.40.0080.01610.15
5.2.30.0020.02010.10
5.2.20.0040.01610.11
5.2.10.0050.0179.96
5.2.00.0040.0189.80
5.1.60.0040.0139.40
5.1.50.0060.0139.28
5.1.40.0080.0089.35
5.1.30.0010.0169.59
5.1.20.0050.0139.60
5.1.10.0040.0159.40
5.1.00.0070.0169.39
5.0.50.0030.0118.67
5.0.40.0040.0088.60
5.0.30.0010.0188.51
5.0.20.0000.0108.50
5.0.10.0050.0058.49
5.0.00.0030.0178.47
4.4.90.0050.0088.20
4.4.80.0010.0098.20
4.4.70.0040.0078.20
4.4.60.0020.0108.20
4.4.50.0060.0078.20
4.4.40.0030.0118.20
4.4.30.0020.0088.20
4.4.20.0030.0078.20
4.4.10.0020.0088.20
4.4.00.0000.0158.20
4.3.110.0050.0078.20
4.3.100.0030.0108.20
4.3.90.0030.0138.20
4.3.80.0030.0128.20
4.3.70.0030.0088.20
4.3.60.0020.0088.20
4.3.50.0030.0088.20
4.3.40.0030.0128.20
4.3.30.0020.0108.20
4.3.20.0020.0108.20
4.3.10.0010.0108.20
4.3.00.0030.0088.20

preferences:
45.36 ms | 401 KiB | 5 Q