3v4l.org

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

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.0130.00718.69
8.3.30.0030.01020.39
8.3.20.0000.00920.10
8.3.10.0040.00420.96
8.3.00.0000.00822.43
8.2.170.0110.00322.96
8.2.160.0100.00322.17
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00420.69
8.2.110.0040.00419.31
8.2.100.0080.00417.78
8.2.90.0000.00719.17
8.2.80.0040.00419.28
8.2.70.0000.01117.63
8.2.60.0050.00318.04
8.2.50.0050.00318.07
8.2.40.0070.00018.15
8.2.30.0000.00719.46
8.2.20.0040.00417.61
8.2.10.0030.00617.67
8.2.00.0000.01017.52
8.1.270.0000.00723.99
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00622.34
8.1.230.0070.00420.91
8.1.220.0000.00818.77
8.1.210.0030.00518.90
8.1.200.0030.00617.22
8.1.190.0030.00517.29
8.1.180.0050.00318.10
8.1.170.0030.00518.58
8.1.160.0000.00718.69
8.1.150.0000.00718.61
8.1.140.0070.00017.29
8.1.130.0070.00017.72
8.1.120.0000.00717.41
8.1.110.0000.00717.41
8.1.100.0040.00417.43
8.1.90.0070.00017.45
8.1.80.0040.00417.42
8.1.70.0030.00517.43
8.1.60.0090.00017.59
8.1.50.0040.00417.39
8.1.40.0060.00317.46
8.1.30.0040.00417.59
8.1.20.0040.00417.61
8.1.10.0000.00717.46
8.1.00.0040.00417.37
8.0.300.0030.00319.93
8.0.290.0000.00717.05
8.0.280.0070.00018.51
8.0.270.0070.00017.23
8.0.260.0030.00316.76
8.0.250.0030.00316.86
8.0.240.0080.00016.83
8.0.230.0030.00316.88
8.0.220.0000.00616.86
8.0.210.0000.00716.80
8.0.200.0030.00316.95
8.0.190.0030.00416.89
8.0.180.0070.00016.85
8.0.170.0000.00816.77
8.0.160.0030.00516.68
8.0.150.0030.00516.77
8.0.140.0040.00416.71
8.0.130.0080.00013.21
8.0.120.0050.00316.77
8.0.110.0040.00416.77
8.0.100.0070.00016.60
8.0.90.0040.00416.79
8.0.80.0040.01116.80
8.0.70.0030.00516.82
8.0.60.0040.00416.75
8.0.50.0040.00416.61
8.0.30.0090.00917.09
8.0.20.0110.00617.40
8.0.10.0070.00016.83
8.0.00.0110.00816.65
7.4.330.0000.00516.77
7.4.320.0070.00016.50
7.4.300.0070.00016.50
7.4.290.0070.00016.40
7.4.280.0040.00416.47
7.4.270.0030.00316.55
7.4.260.0000.00513.14
7.4.250.0040.00416.58
7.4.240.0020.00516.50
7.4.230.0070.00016.57
7.4.220.0090.00916.68
7.4.210.0080.00916.52
7.4.200.0000.00716.34
7.4.190.0050.00216.44
7.4.160.0030.01616.50
7.4.150.0060.01117.40
7.4.140.0090.00917.86
7.4.130.0060.01116.52
7.4.120.0150.00416.53
7.4.110.0060.01216.61
7.4.100.0090.01216.56
7.4.90.0030.01416.57
7.4.80.0100.01019.39
7.4.70.0120.00316.41
7.4.60.0090.01216.47
7.4.50.0030.00616.59
7.4.40.0060.00922.77
7.4.30.0110.01116.56
7.4.10.0110.01116.39
7.4.00.0030.01515.38
7.3.330.0030.00313.29
7.3.320.0000.00613.24
7.3.310.0000.00716.15
7.3.300.0060.00016.35
7.3.290.0000.01416.28
7.3.280.0100.00716.33
7.3.270.0000.01717.40
7.3.260.0110.00718.24
7.3.250.0170.00516.35
7.3.240.0130.00616.51
7.3.230.0140.00316.49
7.3.210.0120.00416.26
7.3.200.0030.02019.39
7.3.190.0120.00616.24
7.3.180.0060.00916.57
7.3.170.0000.01516.27
7.3.160.0030.01216.62
7.3.130.0000.01616.25
7.3.120.0070.01015.33
7.3.110.0080.00715.57
7.3.100.0070.00715.68
7.3.90.0080.00515.53
7.3.80.0060.00815.60
7.3.70.0060.00815.54
7.3.60.0100.00615.60
7.3.50.0070.00615.49
7.3.40.0100.00615.58
7.3.30.0070.00615.51
7.3.20.0080.00317.36
7.3.10.0030.01017.31
7.3.00.0050.00717.37
7.2.330.0160.00616.56
7.2.320.0070.01016.70
7.2.310.0090.01316.68
7.2.300.0040.01216.58
7.2.290.0070.01016.52
7.2.260.0000.01616.57
7.2.250.0020.01615.54
7.2.240.0030.01415.58
7.2.230.0060.01015.67
7.2.220.0080.00815.80
7.2.210.0070.00715.65
7.2.200.0030.01315.66
7.2.190.0100.00815.54
7.2.180.0070.00615.80
7.2.170.0090.00515.54
7.2.160.0070.01016.33
7.2.150.0060.00618.24
7.2.140.0000.01318.25
7.2.130.0040.01118.24
7.2.120.0120.00618.21
7.2.110.0080.00318.22
7.2.100.0040.00818.27
7.2.90.0110.00318.23
7.2.80.0060.00918.34
7.2.70.0120.00018.05
7.2.60.0070.00718.16
7.2.50.0060.01018.20
7.2.40.0030.01418.27
7.2.30.0030.01418.23
7.2.20.0060.00918.25
7.2.10.0070.00718.23
7.2.00.0030.01118.72
7.1.330.0060.00716.33
7.1.320.0060.00816.37
7.1.310.0090.00316.43
7.1.300.0050.01116.36
7.1.290.0030.00516.33
7.1.280.0080.00616.37
7.1.270.0060.00916.42
7.1.260.0060.00616.25
7.1.250.0040.01117.25
7.1.240.0070.00716.96
7.1.230.0080.00317.14
7.1.220.0090.00317.13
7.1.210.0120.00317.18
7.1.200.0040.00717.21
7.1.190.0090.00617.01
7.1.180.0070.01117.15
7.1.170.0090.00617.08
7.1.160.0000.01617.04
7.1.150.0110.00617.02
7.1.140.0060.00617.06
7.1.130.0030.01017.04
7.1.120.0000.01616.94
7.1.110.0030.01417.17
7.1.100.0040.00817.54
7.1.90.0090.00616.98
7.1.80.0120.00317.08
7.1.70.0030.00816.98
7.1.60.0090.00918.17
7.1.50.0030.01217.00
7.1.40.0110.00717.25
7.1.30.0070.00717.11
7.1.20.0060.00917.18
7.1.10.0030.01017.07
7.1.00.0000.02419.71
7.0.330.0040.01116.76
7.0.320.0000.01316.87
7.0.310.0040.01116.68
7.0.300.0030.00716.77
7.0.290.0070.00716.82
7.0.280.0060.01016.81
7.0.270.0070.00716.61
7.0.260.0040.01116.78
7.0.250.0030.01016.91
7.0.240.0080.00816.96
7.0.230.0030.01316.82
7.0.220.0040.01116.80
7.0.210.0050.00516.91
7.0.200.0360.00415.64
7.0.190.0070.01016.93
7.0.180.0040.01217.01
7.0.170.0030.01216.95
7.0.160.0050.00816.99
7.0.150.0000.01316.87
7.0.140.0070.03719.56
7.0.130.0080.00616.64
7.0.120.0000.01317.02
7.0.110.0070.00416.96
7.0.100.0110.01818.42
7.0.90.0110.02018.47
7.0.80.0060.02518.47
7.0.70.0070.03518.39
7.0.60.0080.03918.38
7.0.50.0090.04018.63
7.0.40.0130.02517.42
7.0.30.0050.04517.48
7.0.20.0070.04717.48
7.0.10.0040.03117.49
7.0.00.0080.04517.42
5.6.400.0030.01015.93
5.6.390.0090.00915.80
5.6.380.0000.01315.98
5.6.370.0100.00315.75
5.6.360.0040.01515.75
5.6.350.0120.00615.74
5.6.340.0070.01015.66
5.6.330.0000.01015.85
5.6.320.0040.01115.80
5.6.310.0040.01215.85
5.6.300.0000.01515.69
5.6.290.0040.00715.76
5.6.280.0080.03618.30
5.6.270.0060.00915.87
5.6.260.0060.00915.84
5.6.250.0130.03118.44
5.6.240.0090.02318.09
5.6.230.0070.04018.16
5.6.220.0140.03218.18
5.6.210.0020.04518.20
5.6.200.0070.04718.39
5.6.190.0060.03518.45
5.6.180.0060.03018.32
5.6.170.0110.04618.42
5.6.160.0020.03818.38
5.6.150.0070.04518.37
5.6.140.0080.03018.34
5.6.130.0020.05018.44
5.6.120.0060.04618.22
5.6.110.0140.03718.48
5.6.100.0050.03718.54
5.6.90.0060.02818.25
5.6.80.0050.03718.10
5.6.70.0140.03818.01
5.6.60.0050.04517.97
5.6.50.0050.03318.04
5.6.40.0120.03517.98
5.6.30.0050.03218.07
5.6.20.0060.02317.93
5.6.10.0130.02818.08
5.6.00.0080.04017.99
5.5.380.0110.02518.04
5.5.370.0020.04718.11
5.5.360.0020.03418.13
5.5.350.0070.03918.03
5.5.340.0080.04318.26
5.5.330.0070.02718.17
5.5.320.0070.04118.19
5.5.310.0080.04018.21
5.5.300.0020.03218.38
5.5.290.0080.04218.11
5.5.280.0080.04318.38
5.5.270.0100.03418.17
5.5.260.0090.04118.18
5.5.250.0050.04418.20
5.5.240.0090.03017.89
5.5.230.0080.04417.96
5.5.220.0070.02317.85
5.5.210.0030.04017.94
5.5.200.0090.03217.92
5.5.190.0050.04117.98
5.5.180.0080.03217.92
5.5.170.0060.00915.70
5.5.160.0050.02817.83
5.5.150.0120.04117.94
5.5.140.0110.02517.80
5.5.130.0130.03317.95
5.5.120.0040.03117.79
5.5.110.0080.04217.89
5.5.100.0110.04317.97
5.5.90.0110.04017.94
5.5.80.0070.04217.93
5.5.70.0100.04217.90
5.5.60.0100.02917.86
5.5.50.0070.04017.82
5.5.40.0090.03517.87
5.5.30.0070.02417.81
5.5.20.0000.03117.80
5.5.10.0030.02617.74
5.5.00.0070.03817.79
5.4.450.0070.04116.18
5.4.440.0040.04616.31
5.4.430.0080.03316.25
5.4.420.0060.04416.29
5.4.410.0070.03716.24
5.4.400.0080.04015.99
5.4.390.0050.03816.09
5.4.380.0030.04616.13
5.4.370.0030.04416.13
5.4.360.0080.03316.00
5.4.350.0030.03916.13
5.4.340.0050.03616.04
5.4.330.0030.00713.13
5.4.320.0090.02216.09
5.4.310.0070.03416.08
5.4.300.0050.04116.00
5.4.290.0050.04416.04
5.4.280.0070.02316.13
5.4.270.0050.04016.02
5.4.260.0050.04016.04
5.4.250.0070.04216.15
5.4.240.0000.05016.16
5.4.230.0050.04416.12
5.4.220.0070.03816.08
5.4.210.0090.03516.08
5.4.200.0030.03216.00
5.4.190.0100.02516.16
5.4.180.0050.02216.08
5.4.170.0040.02615.98
5.4.160.0080.02916.17
5.4.150.0020.04215.99
5.4.140.0040.03914.81
5.4.130.0090.03214.81
5.4.120.0050.03714.69
5.4.110.0070.03714.81
5.4.100.0030.02514.74
5.4.90.0020.03814.74
5.4.80.0050.04114.81
5.4.70.0080.03614.73
5.4.60.0070.02714.78
5.4.50.0080.03314.77
5.4.40.0070.03714.77
5.4.30.0030.02614.76
5.4.20.0020.02914.79
5.4.10.0050.04014.76
5.4.00.0070.04314.49
5.3.290.0070.04013.93
5.3.280.0050.04313.82
5.3.270.0030.04213.93
5.3.260.0070.02213.94
5.3.250.0060.03113.89
5.3.240.0080.04013.88
5.3.230.0030.03013.92
5.3.220.0050.04213.88
5.3.210.0020.03213.84
5.3.200.0020.02413.81
5.3.190.0050.04213.88
5.3.180.0100.03713.86
5.3.170.0050.02713.85
5.3.160.0080.03113.88
5.3.150.0080.03113.88
5.3.140.0020.04313.86
5.3.130.0030.02713.82
5.3.120.0020.04313.89
5.3.110.0030.03113.82
5.3.100.0090.04013.57
5.3.90.0020.04213.59
5.3.80.0030.04313.60
5.3.70.0060.04013.52
5.3.60.0080.02513.62
5.3.50.0030.04513.56
5.3.40.0070.04113.60
5.3.30.0070.02713.56
5.3.20.0100.03313.42
5.3.10.0110.03313.41
5.3.00.0050.03813.37
5.2.170.0100.05712.25
5.2.160.0030.06012.25
5.2.150.0000.06712.25
5.2.140.0100.06012.25
5.2.130.0100.05712.25
5.2.120.0030.03712.25
5.2.110.0030.06012.25
5.2.100.0070.05012.25
5.2.90.0070.06012.25
5.2.80.0000.06712.25
5.2.70.0100.05312.25
5.2.60.0030.06012.25
5.2.50.0000.05312.25
5.2.40.0000.04012.25
5.2.30.0030.04312.25
5.2.20.0100.05312.25
5.2.10.0070.05712.25
5.2.00.0000.05712.25
5.1.60.0000.04012.25
5.1.50.0030.05012.25
5.1.40.0030.02712.25
5.1.30.0100.04012.25
5.1.20.0070.04712.25
5.1.10.0100.03712.25
5.1.00.0000.04012.25
5.0.50.0100.04012.25
5.0.40.0030.03712.25
5.0.30.0000.04712.25
5.0.20.0000.03312.25
5.0.10.0130.03712.25
5.0.00.0000.05712.25
4.4.90.0000.03312.25
4.4.80.0000.02012.25
4.4.70.0070.03012.25
4.4.60.0030.02712.25
4.4.50.0000.02012.25
4.4.40.0000.03012.25
4.4.30.0030.01312.25
4.4.20.0000.03712.25
4.4.10.0030.03012.25
4.4.00.0030.05712.25
4.3.110.0000.03312.25
4.3.100.0030.01712.25
4.3.90.0000.02312.25
4.3.80.0030.05012.25
4.3.70.0000.03712.25
4.3.60.0000.03312.25
4.3.50.0030.04012.25
4.3.40.0000.02312.25
4.3.30.0030.03012.25
4.3.20.0030.03712.25
4.3.10.0100.02712.25
4.3.00.0000.03012.25

preferences:
38.58 ms | 400 KiB | 5 Q