3v4l.org

run code in 300+ PHP versions simultaneously
<?php function validateNumber($number) { try { $number = filter_var($number, FILTER_VALIDATE_INT); if(!$number) { throw new PageNotAnInteger('That dddddpage number is not an integer'); } } catch(Exception $e) { throw new PageNotAnInteger('That page 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.60.0100.01018.43
8.3.50.0170.00621.02
8.3.40.0140.00018.67
8.3.30.0120.00620.01
8.3.20.0070.00020.39
8.3.10.0000.00720.97
8.3.00.0040.00422.57
8.2.180.0140.00016.35
8.2.170.0110.00422.96
8.2.160.0000.01422.16
8.2.150.0030.00524.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0080.00020.67
8.2.110.0060.00319.22
8.2.100.0080.00417.91
8.2.90.0000.00719.08
8.2.80.0040.00419.21
8.2.70.0060.00317.50
8.2.60.0000.00817.93
8.2.50.0060.00318.07
8.2.40.0060.00318.09
8.2.30.0040.00419.31
8.2.20.0000.00817.64
8.2.10.0040.00417.80
8.2.00.0060.00617.75
8.1.280.0130.00325.92
8.1.270.0000.00823.99
8.1.260.0000.00726.35
8.1.250.0050.00228.09
8.1.240.0070.00323.90
8.1.230.0040.00721.04
8.1.220.0060.00318.77
8.1.210.0030.00620.82
8.1.200.0050.00517.35
8.1.190.0060.00317.53
8.1.180.0030.00518.10
8.1.170.0030.00518.64
8.1.160.0000.00818.89
8.1.150.0040.00418.63
8.1.140.0000.00717.36
8.1.130.0060.00317.79
8.1.120.0030.00617.38
8.1.110.0040.00417.36
8.1.100.0000.00717.45
8.1.90.0000.00717.49
8.1.80.0050.00217.34
8.1.70.0000.00717.44
8.1.60.0030.00717.48
8.1.50.0070.00017.57
8.1.40.0040.00417.45
8.1.30.0080.00017.61
8.1.20.0050.00317.65
8.1.10.0060.00317.54
8.1.00.0000.00817.43
8.0.300.0040.00420.03
8.0.290.0040.00417.16
8.0.280.0030.00318.51
8.0.270.0070.00017.31
8.0.260.0070.00016.88
8.0.250.0070.00016.99
8.0.240.0070.00017.02
8.0.230.0030.00317.04
8.0.220.0000.00716.95
8.0.210.0000.00716.98
8.0.200.0040.00417.05
8.0.190.0000.00816.93
8.0.180.0000.00717.00
8.0.170.0030.00516.99
8.0.160.0030.00316.90
8.0.150.0050.00216.79
8.0.140.0040.00716.97
8.0.130.0030.00313.37
8.0.120.0020.00516.86
8.0.110.0070.00016.82
8.0.100.0030.00616.78
8.0.90.0070.00016.82
8.0.80.0070.00716.91
8.0.70.0050.00316.82
8.0.60.0000.00717.00
8.0.50.0040.00416.93
8.0.30.0140.00816.93
8.0.20.0140.00517.42
8.0.10.0070.00016.97
8.0.00.0080.00916.78
7.4.330.0000.00516.72
7.4.320.0000.00616.50
7.4.300.0030.00316.64
7.4.290.0070.00016.40
7.4.280.0000.00716.60
7.4.270.0040.00416.48
7.4.260.0030.00313.28
7.4.250.0040.00416.55
7.4.240.0030.00316.52
7.4.230.0050.00216.68
7.4.220.0140.00716.71
7.4.210.0060.00916.47
7.4.200.0000.00716.62
7.4.190.0000.00716.63
7.4.160.0080.00816.49
7.4.150.0040.01417.40
7.4.140.0150.00717.86
7.4.130.0070.01016.51
7.4.120.0080.01216.63
7.4.110.0100.00716.61
7.4.100.0090.00916.65
7.4.90.0060.01216.58
7.4.80.0080.00919.39
7.4.70.0070.01016.62
7.4.60.0000.01716.55
7.4.50.0070.00016.46
7.4.40.0000.01622.77
7.4.30.0120.00416.58
7.4.00.0100.00015.09
7.3.330.0000.00513.36
7.3.320.0000.00513.16
7.3.310.0000.00716.31
7.3.300.0070.00016.40
7.3.290.0070.00716.36
7.3.280.0060.01116.40
7.3.270.0060.01117.40
7.3.260.0070.01018.24
7.3.250.0100.00716.37
7.3.240.0070.01016.66
7.3.230.0070.01016.61
7.3.210.0100.00716.52
7.3.200.0110.00719.39
7.3.190.0120.01016.38
7.3.180.0040.01216.32
7.3.170.0000.01516.60
7.3.160.0090.00616.43
7.3.120.0070.00714.98
7.2.330.0100.00716.72
7.2.320.0110.01116.38
7.2.310.0130.01016.75
7.2.300.0100.00716.51
7.2.290.0110.01616.28
7.2.60.0060.00916.86
7.2.00.0030.01019.54
7.1.200.0060.00615.49
7.1.100.0000.00917.87
7.1.70.0040.00416.93
7.1.60.0090.01319.17
7.1.50.0070.01716.96
7.1.00.0000.05022.45
7.0.200.0370.00414.46
7.0.140.0000.07722.04
7.0.110.0670.08319.86
7.0.100.0700.08019.86
7.0.90.0600.06719.86
7.0.80.0730.06719.96
7.0.70.0670.08719.88
7.0.60.0530.06019.88
7.0.50.0670.08020.02
7.0.40.0130.06019.71
7.0.30.0070.06019.66
7.0.20.0170.06719.71
7.0.10.0030.06319.82
7.0.00.0070.08019.65
5.6.280.0100.06021.07
5.6.260.0130.07320.69
5.6.250.0030.08720.72
5.6.240.0130.07720.57
5.6.230.0070.07720.72
5.6.220.0170.07720.46
5.6.210.0100.07020.60
5.6.200.0130.07720.71
5.6.190.0130.07720.64
5.6.180.0100.08020.66
5.6.170.0170.06320.59
5.6.160.0070.07720.66
5.6.150.0070.08020.57
5.6.140.0070.08720.59
5.6.130.0030.05020.71
5.6.120.0070.05020.55
5.6.110.0030.05020.59
5.6.100.0100.07720.64
5.6.90.0100.08020.55
5.6.80.0030.07720.00
5.6.70.0030.07719.98
5.6.60.0000.06319.99
5.6.50.0070.08019.85
5.6.40.0100.07319.98
5.6.30.0200.06720.00
5.6.20.0000.07019.98
5.6.10.0100.07720.21
5.6.00.0030.07719.90
5.5.380.0070.08017.54
5.5.370.0130.07317.69
5.5.360.0030.08317.55
5.5.350.0070.08717.62
5.5.340.0070.08018.10
5.5.330.0100.04718.14
5.5.320.0100.07317.84
5.5.310.0030.08718.12
5.5.300.0070.07718.23
5.5.290.0170.07718.07
5.5.280.0070.07717.95
5.5.270.0070.08018.21
5.5.260.0100.07317.92
5.5.250.0130.07317.91
5.5.240.0100.07317.52
5.5.230.0130.07317.31
5.5.220.0070.07017.64
5.5.210.0230.06317.33
5.5.200.0030.05017.57
5.5.190.0130.07017.48
5.5.180.0030.06317.60
5.5.160.0130.06317.44
5.5.150.0030.07317.26
5.5.140.0070.07017.27
5.5.130.0100.07017.45
5.5.120.0100.07017.27
5.5.110.0100.08017.27
5.5.100.0100.07317.36
5.5.90.0000.07717.47
5.5.80.0100.08017.48
5.5.70.0000.08717.20
5.5.60.0170.06017.15
5.5.50.0130.07317.47
5.5.40.0100.08017.32
5.5.30.0000.06017.45
5.5.20.0100.05717.36
5.5.10.0070.08317.29
5.5.00.0000.07717.18
5.4.450.0070.09019.33
5.4.440.0170.07019.27
5.4.430.0030.08019.46
5.4.420.0100.06019.31
5.4.410.0130.07319.53
5.4.400.0070.07719.19
5.4.390.0000.07319.16
5.4.380.0030.07318.99
5.4.370.0130.06719.01
5.4.360.0170.06719.07
5.4.350.0170.07319.19
5.4.340.0130.07319.34
5.4.320.0100.05319.00
5.4.310.0030.08019.03
5.4.300.0070.05319.18
5.4.290.0030.08019.23
5.4.280.0100.07319.34
5.4.270.0070.07319.31
5.4.260.0070.07319.00
5.4.250.0070.07719.10
5.4.240.0030.05319.04
5.4.230.0100.07019.17
5.4.220.0000.05019.33
5.4.210.0200.05719.00
5.4.200.0170.06319.18
5.4.190.0070.07319.13
5.4.180.0100.07019.32
5.4.170.0070.04018.97
5.4.160.0070.07319.16
5.4.150.0100.07319.29
5.4.140.0070.07316.52
5.4.130.0070.07016.52
5.4.120.0070.05316.32
5.4.110.0170.03016.47
5.4.100.0070.04016.37
5.4.90.0030.05016.31
5.4.80.0070.03716.35
5.4.70.0030.04016.40
5.4.60.0070.04316.48
5.4.50.0030.04716.44
5.4.40.0130.04316.58
5.4.30.0030.07316.23
5.4.20.0000.08016.51
5.4.10.0100.03716.28
5.4.00.0000.06715.77
5.3.290.0070.08014.68
5.3.280.0030.05314.73
5.3.270.0070.07314.48
5.3.260.0030.07714.46
5.3.250.0070.07314.74
5.3.240.0130.06014.62
5.3.230.0070.07314.68
5.3.220.0130.06314.57
5.3.210.0000.04014.57
5.3.200.0070.04314.52
5.3.190.0030.04714.52
5.3.180.0030.07714.70
5.3.170.0030.08014.57
5.3.160.0000.06714.61
5.3.150.0030.03714.79
5.3.140.0030.03314.53
5.3.130.0030.03314.55
5.3.120.0070.06014.60
5.3.110.0030.08314.55
5.3.100.0030.07014.07
5.3.90.0130.05714.16
5.3.80.0070.05014.04
5.3.70.0070.04314.15
5.3.60.0030.03714.02
5.3.50.0070.06714.04
5.3.40.0100.07314.17
5.3.30.0330.05714.04
5.3.20.0130.05313.83
5.3.10.0030.07013.66
5.3.00.0070.06713.65
5.2.170.0100.05311.31
5.2.160.0070.06011.36
5.2.150.0030.06011.31
5.2.140.0070.06011.31
5.2.130.0070.06311.31
5.2.120.0070.06711.31
5.2.110.0000.06711.31
5.2.100.0030.04311.33
5.2.90.0030.06711.31
5.2.80.0030.04711.31
5.2.70.0070.06011.31
5.2.60.0000.06311.31
5.2.50.0130.05311.31
5.2.40.0030.05311.31
5.2.30.0030.06711.31
5.2.20.0030.04011.31
5.2.10.0030.03711.31
5.2.00.0000.06711.31
5.1.60.0070.05011.31
5.1.50.0130.05011.31
5.1.40.0070.04711.31
5.1.30.0030.03311.31
5.1.20.0070.05311.31
5.1.10.0000.06311.31
5.1.00.0030.04311.31
5.0.50.0200.01711.31
5.0.40.0130.03311.31
5.0.30.0000.03311.31
5.0.20.0000.02311.31
5.0.10.0030.04311.31
5.0.00.0000.03311.31
4.4.90.0030.03311.31
4.4.80.0000.03711.31
4.4.70.0000.03711.31
4.4.60.0000.03711.31
4.4.50.0000.03711.31
4.4.40.0000.05311.31
4.4.30.0070.03011.31
4.4.20.0030.03711.31
4.4.10.0030.03311.31
4.4.00.0000.05711.31
4.3.110.0000.03711.31
4.3.100.0100.02711.31
4.3.90.0000.01711.31
4.3.80.0000.02311.31
4.3.70.0070.03011.31
4.3.60.0000.03011.31
4.3.50.0000.03711.31
4.3.40.0030.04311.31
4.3.30.0000.02011.31
4.3.20.0030.01711.31
4.3.10.0000.01711.31
4.3.00.0000.02311.31

preferences:
48.85 ms | 401 KiB | 5 Q