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)); } catch(Exception $e) { throw new PageNotAnInteger('That page number is not an integer'); } } validateNumber(23.8);

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.0070.01418.59
8.3.30.0100.00320.13
8.3.20.0040.00420.34
8.3.10.0080.00021.01
8.3.00.0000.00822.37
8.2.170.0090.00922.96
8.2.160.0060.00622.17
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00420.65
8.2.110.0090.00019.38
8.2.100.0080.00417.66
8.2.90.0080.00019.09
8.2.80.0000.00819.38
8.2.70.0080.00017.38
8.2.60.0000.00917.91
8.2.50.0050.00318.07
8.2.40.0000.00818.03
8.2.30.0000.00719.34
8.2.20.0050.00217.53
8.2.10.0000.00817.51
8.2.00.0030.00617.46
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00322.40
8.1.230.0110.00020.95
8.1.220.0040.00418.77
8.1.210.0040.00418.91
8.1.200.0100.00017.23
8.1.190.0040.00417.41
8.1.180.0060.00318.10
8.1.170.0040.00418.66
8.1.160.0000.00718.80
8.1.150.0050.00218.44
8.1.140.0040.00417.39
8.1.130.0080.00017.64
8.1.120.0050.00317.33
8.1.110.0000.00717.30
8.1.100.0070.00017.29
8.1.90.0000.00817.26
8.1.80.0040.00417.40
8.1.70.0070.00017.33
8.1.60.0000.00817.42
8.1.50.0030.00617.38
8.1.40.0040.00417.48
8.1.30.0000.00817.57
8.1.20.0030.00517.55
8.1.10.0000.00717.35
8.1.00.0030.00517.20
8.0.300.0040.00419.76
8.0.290.0070.00017.05
8.0.280.0040.00318.32
8.0.270.0040.00417.01
8.0.260.0000.00616.63
8.0.250.0040.00416.73
8.0.240.0030.00516.86
8.0.230.0000.00716.79
8.0.220.0070.00016.80
8.0.210.0030.00316.65
8.0.200.0040.00416.76
8.0.190.0030.00316.89
8.0.180.0050.00316.67
8.0.170.0090.00016.72
8.0.160.0050.00216.72
8.0.150.0040.00416.60
8.0.140.0060.00316.62
8.0.130.0030.00313.25
8.0.120.0040.00416.79
8.0.110.0040.00416.74
8.0.100.0050.00516.73
8.0.90.0000.00816.80
8.0.80.0120.00316.72
8.0.70.0030.00616.59
8.0.60.0000.00716.56
8.0.50.0040.00416.82
8.0.30.0100.00916.97
8.0.20.0110.01117.40
8.0.10.0040.00416.93
8.0.00.0070.01216.54
7.4.330.0030.00316.82
7.4.320.0030.00316.36
7.4.300.0000.00616.54
7.4.290.0070.00016.38
7.4.280.0030.00316.45
7.4.270.0030.00316.55
7.4.260.0030.00313.22
7.4.250.0000.00716.41
7.4.240.0040.00316.49
7.4.230.0000.00716.52
7.4.220.0060.01316.39
7.4.210.0080.00616.50
7.4.200.0030.00316.33
7.4.190.0000.00716.66
7.4.160.0060.01016.30
7.4.150.0080.00817.40
7.4.140.0080.00917.86
7.4.130.0080.00816.41
7.4.120.0100.00616.36
7.4.110.0070.01016.34
7.4.100.0100.00716.34
7.4.90.0070.01116.25
7.4.80.0110.01119.39
7.4.70.0090.00616.29
7.4.60.0040.01416.41
7.4.50.0040.00416.30
7.4.40.0060.00922.77
7.4.30.0050.01116.33
7.4.10.0000.01314.91
7.4.00.0060.00814.90
7.3.330.0030.00313.20
7.3.320.0000.00513.09
7.3.310.0000.00716.26
7.3.300.0070.00016.18
7.3.290.0100.00416.29
7.3.280.0090.00616.26
7.3.270.0110.00617.40
7.3.260.0170.00918.24
7.3.250.0080.00816.34
7.3.240.0090.00616.50
7.3.230.0130.00316.39
7.3.210.0040.01216.36
7.3.200.0150.00319.39
7.3.190.0090.01216.48
7.3.180.0110.00416.18
7.3.170.0030.01216.36
7.3.160.0150.00616.13
7.3.130.0030.01014.64
7.3.120.0050.01114.73
7.3.110.0000.01314.63
7.3.100.0060.00914.55
7.3.90.0110.00714.77
7.3.80.0000.00914.55
7.3.70.0030.01314.77
7.3.60.0070.01014.72
7.3.50.0090.00914.74
7.3.40.0090.00614.31
7.3.30.0070.00414.78
7.3.20.0070.01016.73
7.3.10.0060.00916.64
7.3.00.0090.00916.41
7.2.330.0060.01616.53
7.2.320.0060.01016.14
7.2.310.0040.01316.33
7.2.300.0110.00616.35
7.2.290.0160.00016.37
7.2.260.0060.00815.04
7.2.250.0070.00714.94
7.2.240.0060.00914.77
7.2.230.0100.01014.71
7.2.220.0110.00714.95
7.2.210.0090.00614.96
7.2.200.0030.00914.51
7.2.190.0130.00314.71
7.2.180.0120.00614.78
7.2.170.0000.01414.96
7.2.160.0100.00714.86
7.2.150.0030.01016.68
7.2.140.0030.01616.78
7.2.130.0090.00616.73
7.2.120.0090.00916.80
7.2.110.0030.01316.77
7.2.100.0000.01016.60
7.2.90.0040.01116.90
7.2.80.0100.01016.53
7.2.70.0070.01016.70
7.2.60.0050.01116.83
7.2.50.0030.00816.87
7.2.40.0070.01116.77
7.2.30.0040.01116.52
7.2.20.0130.00316.93
7.2.10.0030.01016.51
7.2.00.0020.00817.91
7.1.330.0000.01215.77
7.1.320.0120.00615.68
7.1.310.0040.00415.67
7.1.300.0100.00715.75
7.1.290.0040.00715.60
7.1.280.0000.01315.45
7.1.270.0110.00715.78
7.1.260.0040.01115.77
7.1.250.0070.01015.63
7.1.240.0110.00315.47
7.1.230.0130.00015.79
7.1.220.0040.00715.59
7.1.210.0030.00515.79
7.1.200.0050.00615.65
7.1.190.0070.01015.64
7.1.180.0060.00615.55
7.1.170.0000.01415.48
7.1.160.0000.01115.85
7.1.150.0030.00715.58
7.1.140.0060.00615.84
7.1.130.0150.00315.79
7.1.120.0070.01015.57
7.1.110.0040.00815.91
7.1.100.0060.00817.08
7.1.90.0070.00315.77
7.1.80.0000.01415.74
7.1.70.0000.01116.43
7.1.60.0110.00317.46
7.1.50.0100.01016.40
7.1.40.0060.01215.78
7.1.30.0080.00615.44
7.1.20.0000.01215.73
7.1.10.0060.00315.79
7.1.00.0050.02019.03
7.0.330.0070.00715.18
7.0.320.0060.00615.46
7.0.310.0090.00915.06
7.0.300.0070.00715.44
7.0.290.0090.00615.31
7.0.280.0040.00815.30
7.0.270.0060.01115.12
7.0.260.0080.00515.33
7.0.250.0000.01015.38
7.0.240.0060.00915.38
7.0.230.0040.00415.41
7.0.220.0070.00715.25
7.0.210.0080.00815.18
7.0.200.0370.00314.98
7.0.190.0030.00915.36
7.0.180.0040.00715.36
7.0.170.0080.00415.51
7.0.160.0030.01315.22
7.0.150.0090.00315.50
7.0.140.0110.03518.67
7.0.130.0080.00915.43
7.0.120.0060.00615.46
7.0.110.0040.00815.33
7.0.100.0070.02617.67
7.0.90.0080.02817.66
7.0.80.0020.04817.63
7.0.70.0230.04217.54
7.0.60.0080.04217.59
7.0.50.0070.04417.78
7.0.40.0130.04216.81
7.0.30.0070.04716.69
7.0.20.0050.04516.73
7.0.10.0050.02916.81
7.0.00.0130.04216.59
5.6.400.0090.00913.99
5.6.390.0030.01214.21
5.6.380.0030.01213.98
5.6.370.0080.00514.09
5.6.360.0030.01014.05
5.6.350.0060.01014.22
5.6.340.0030.00514.20
5.6.330.0040.00813.82
5.6.320.0090.00314.15
5.6.310.0090.00613.79
5.6.300.0070.00714.05
5.6.290.0030.00613.91
5.6.280.0030.04017.68
5.6.270.0120.00014.26
5.6.260.0040.01114.45
5.6.250.0080.04117.54
5.6.240.0100.02417.37
5.6.230.0040.03817.26
5.6.220.0030.04017.33
5.6.210.0150.02717.23
5.6.200.0080.03817.61
5.6.190.0110.03717.67
5.6.180.0050.02617.56
5.6.170.0090.03917.57
5.6.160.0060.04717.49
5.6.150.0020.04917.51
5.6.140.0050.04317.57
5.6.130.0100.04317.59
5.6.120.0110.02517.66
5.6.110.0080.03817.66
5.6.100.0050.04617.49
5.6.90.0080.04317.65
5.6.80.0080.04317.15
5.6.70.0070.03017.15
5.6.60.0050.04617.31
5.6.50.0100.04017.17
5.6.40.0050.03817.28
5.6.30.0070.02317.25
5.6.20.0080.02217.27
5.6.10.0030.04517.25
5.6.00.0100.02517.25
5.5.380.0080.02817.20
5.5.370.0050.04817.23
5.5.360.0100.04317.17
5.5.350.0040.03917.26
5.5.340.0080.04517.46
5.5.330.0050.04417.34
5.5.320.0030.03917.41
5.5.310.0090.04317.38
5.5.300.0060.03817.33
5.5.290.0120.04317.27
5.5.280.0030.04317.36
5.5.270.0100.04417.49
5.5.260.0050.03017.40
5.5.250.0090.02917.38
5.5.240.0030.03017.12
5.5.230.0080.04816.98
5.5.220.0020.03117.17
5.5.210.0150.03217.11
5.5.200.0030.02917.15
5.5.190.0080.04016.95
5.5.180.0080.04017.16
5.5.170.0140.00014.08
5.5.160.0050.02817.05
5.5.150.0140.03517.17
5.5.140.0120.04316.98
5.5.130.0110.04017.07
5.5.120.0080.03217.26
5.5.110.0080.03817.07
5.5.100.0050.04417.09
5.5.90.0070.04117.09
5.5.80.0030.04816.92
5.5.70.0090.04016.87
5.5.60.0080.04117.04
5.5.50.0120.03816.99
5.5.40.0110.03816.85
5.5.30.0050.04117.11
5.5.20.0030.05116.92
5.5.10.0110.04116.89
5.5.00.0030.03816.90
5.4.450.0020.02815.19
5.4.440.0030.04315.29
5.4.430.0020.03815.27
5.4.420.0030.03715.23
5.4.410.0150.03315.25
5.4.400.0100.03515.15
5.4.390.0060.04015.17
5.4.380.0070.03715.11
5.4.370.0030.04215.14
5.4.360.0130.03715.11
5.4.350.0050.03515.08
5.4.340.0090.03615.07
5.4.330.0030.00611.11
5.4.320.0030.03315.17
5.4.310.0070.02815.03
5.4.300.0000.02614.99
5.4.290.0070.03815.11
5.4.280.0050.02215.13
5.4.270.0060.02115.11
5.4.260.0130.03515.08
5.4.250.0070.02015.06
5.4.240.0100.02815.06
5.4.230.0000.02615.02
5.4.220.0080.04115.11
5.4.210.0050.02515.07
5.4.200.0080.04014.98
5.4.190.0080.04115.12
5.4.180.0070.04015.17
5.4.170.0060.04115.11
5.4.160.0060.03415.06
5.4.150.0030.02915.06
5.4.140.0080.04013.76
5.4.130.0030.03213.72
5.4.120.0050.02313.78
5.4.110.0100.03013.76
5.4.100.0080.03813.79
5.4.90.0080.04013.81
5.4.80.0000.02913.77
5.4.70.0070.03213.76
5.4.60.0050.03013.74
5.4.50.0100.03813.74
5.4.40.0050.01713.81
5.4.30.0080.03013.73
5.4.20.0050.04113.78
5.4.10.0080.03013.79
5.4.00.0010.03813.44
5.3.290.0080.02512.88
5.3.280.0100.04112.85
5.3.270.0020.04912.89
5.3.260.0080.04412.88
5.3.250.0080.03012.85
5.3.240.0120.03712.88
5.3.230.0050.05012.85
5.3.220.0100.02012.83
5.3.210.0090.02312.89
5.3.200.0080.04212.87
5.3.190.0070.03912.89
5.3.180.0050.03112.83
5.3.170.0090.04012.87
5.3.160.0070.02012.85
5.3.150.0070.04212.83
5.3.140.0130.02212.79
5.3.130.0090.03812.87
5.3.120.0030.02612.79
5.3.110.0090.04212.86
5.3.100.0090.03812.62
5.3.90.0050.04112.56
5.3.80.0080.04012.57
5.3.70.0070.02112.62
5.3.60.0060.02512.60
5.3.50.0070.03712.53
5.3.40.0080.03312.47
5.3.30.0090.02012.50
5.3.20.0070.02412.45
5.3.10.0050.03812.37
5.3.00.0110.04012.37
5.2.170.0000.03713.64
5.2.160.0030.03013.64
5.2.150.0030.07013.64
5.2.140.0000.03313.64
5.2.130.0030.03313.64
5.2.120.0030.06013.64
5.2.110.0070.03013.64
5.2.100.0000.06313.64
5.2.90.0030.06313.64
5.2.80.0070.06013.64
5.2.70.0070.06013.64
5.2.60.0070.06013.64
5.2.50.0170.05713.64
5.2.40.0030.06013.64
5.2.30.0070.03313.64
5.2.20.0070.05013.64
5.2.10.0000.05013.64
5.2.00.0000.05713.64
5.1.60.0070.04713.64
5.1.50.0030.04713.64
5.1.40.0030.05013.64
5.1.30.0070.04713.64
5.1.20.0000.06313.64
5.1.10.0070.02313.64
5.1.00.0000.03313.64
5.0.50.0000.03313.64
5.0.40.0070.03713.64
5.0.30.0000.03713.64
5.0.20.0000.02313.64
5.0.10.0000.02713.64
5.0.00.0070.06013.64
4.4.90.0000.02313.64
4.4.80.0030.03313.64
4.4.70.0000.02013.64
4.4.60.0030.02313.64
4.4.50.0000.03313.64
4.4.40.0000.05313.64
4.4.30.0070.02013.64
4.4.20.0000.02313.64
4.4.10.0030.03313.64
4.4.00.0000.05313.64
4.3.110.0100.02013.64
4.3.100.0000.03313.64
4.3.90.0000.02313.64
4.3.80.0000.05013.64
4.3.70.0000.03713.64
4.3.60.0000.03713.64
4.3.50.0100.01013.64
4.3.40.0000.05313.64
4.3.30.0070.03013.64
4.3.20.0030.03313.64
4.3.10.0000.03013.64
4.3.00.0000.01713.64

preferences:
48.4 ms | 400 KiB | 5 Q