3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * test. * * @package * @subpackage * @copyright 2013 Hotels.nl */ error_reporting(E_ALL); /** * test. */ class test { /** * SOMETHING * * @const integer SOMETHING */ const SOMETHING = 15; public function somethingElse($limit = self::SOMETHING) { } } new test;

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.0070.01418.30
8.3.50.0110.01322.05
8.3.40.0110.00718.55
8.3.30.0120.00318.76
8.3.20.0090.00020.34
8.3.10.0000.00723.70
8.3.00.0050.00320.82
8.2.180.0110.00418.18
8.2.170.0140.00022.96
8.2.160.0110.00722.08
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00021.00
8.2.110.0030.00621.00
8.2.100.0080.00417.59
8.2.90.0070.00317.35
8.2.80.0030.00620.29
8.2.70.0060.00317.92
8.2.60.0090.00017.68
8.2.50.0070.00718.10
8.2.40.0060.00320.59
8.2.30.0030.00517.92
8.2.20.0020.00517.54
8.2.10.0000.00817.57
8.2.00.0080.00017.44
8.1.280.0140.00725.92
8.1.270.0080.00023.97
8.1.260.0110.00326.35
8.1.250.0040.00428.09
8.1.240.0000.01722.57
8.1.230.0040.00720.95
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00717.35
8.1.190.0040.00417.11
8.1.180.0000.00818.10
8.1.170.0000.00818.58
8.1.160.0070.00021.95
8.1.150.0050.00218.56
8.1.140.0040.00417.37
8.1.130.0040.00417.81
8.1.120.0040.00417.38
8.1.110.0000.00717.32
8.1.100.0070.00017.32
8.1.90.0000.00717.37
8.1.80.0000.00717.38
8.1.70.0050.00217.26
8.1.60.0040.00417.46
8.1.50.0000.00817.36
8.1.40.0040.00417.39
8.1.30.0040.00417.53
8.1.20.0080.00017.51
8.1.10.0070.00017.35
8.1.00.0000.00817.46
8.0.300.0070.00019.86
8.0.290.0080.00016.63
8.0.280.0030.00318.39
8.0.270.0080.00017.07
8.0.260.0000.00716.82
8.0.250.0000.00716.88
8.0.240.0030.00416.83
8.0.230.0000.00616.74
8.0.220.0000.00716.78
8.0.210.0000.00716.81
8.0.200.0000.00816.76
8.0.190.0000.00816.73
8.0.180.0000.00716.69
8.0.170.0030.00616.75
8.0.160.0000.00816.83
8.0.150.0050.00216.70
8.0.140.0030.00616.62
8.0.130.0050.00013.24
8.0.120.0040.00416.77
8.0.110.0000.00816.70
8.0.100.0020.00516.63
8.0.90.0040.00416.67
8.0.80.0100.00716.65
8.0.70.0000.00716.80
8.0.60.0040.00416.73
8.0.50.0020.00516.66
8.0.30.0100.00917.05
8.0.20.0160.00417.40
8.0.10.0040.00416.93
8.0.00.0110.00916.61
7.4.330.0050.00015.00
7.4.320.0030.00316.40
7.4.300.0030.00316.46
7.4.290.0000.00716.52
7.4.280.0000.00716.45
7.4.270.0040.00416.37
7.4.260.0040.00416.37
7.4.250.0080.00016.35
7.4.240.0040.00316.38
7.4.230.0070.00016.39
7.4.220.0140.00416.32
7.4.210.0090.00516.50
7.4.200.0030.00616.22
7.4.190.0000.00716.57
7.4.160.0140.00316.25
7.4.150.0070.01017.40
7.4.140.0110.00817.86
7.4.130.0120.00716.42
7.4.120.0140.00216.37
7.4.110.0140.00416.45
7.4.100.0100.00716.31
7.4.90.0110.00716.41
7.4.80.0120.00819.39
7.4.70.0100.01016.33
7.4.60.0180.00316.42
7.4.50.0000.00816.06
7.4.40.0090.00622.77
7.4.30.0090.00616.36
7.4.00.0070.01014.86
7.3.330.0000.00612.97
7.3.320.0000.00613.00
7.3.310.0000.00716.27
7.3.300.0030.00316.15
7.3.290.0070.01016.20
7.3.280.0090.00916.14
7.3.270.0080.00817.40
7.3.260.0160.00316.45
7.3.250.0050.01216.41
7.3.240.0060.01116.23
7.3.230.0130.00316.39
7.3.210.0070.01016.34
7.3.200.0060.00916.28
7.3.190.0120.00416.38
7.3.180.0100.00616.30
7.3.170.0120.00916.45
7.3.160.0080.00916.16
7.3.120.0070.00714.59
7.3.110.0070.01014.89
7.3.100.0070.00714.54
7.3.90.0140.00314.66
7.3.80.0060.00714.41
7.3.70.0060.00914.70
7.3.60.0070.00714.79
7.3.50.0000.01614.54
7.3.40.0070.00714.46
7.3.30.0030.00914.77
7.3.20.0070.00716.52
7.3.10.0070.01016.51
7.3.00.0090.00316.70
7.2.330.0130.01016.61
7.2.320.0060.01216.52
7.2.310.0160.00616.68
7.2.300.0120.00616.55
7.2.290.0080.00816.33
7.2.250.0080.00815.11
7.2.240.0030.01314.77
7.2.230.0070.01014.45
7.2.220.0070.00714.55
7.2.210.0100.00714.82
7.2.200.0100.00314.85
7.2.190.0060.01014.87
7.2.180.0060.00914.68
7.2.170.0030.01414.66
7.2.60.0140.00616.07
7.2.00.0110.00718.77
7.1.330.0040.01115.35
7.1.320.0050.00415.56
7.1.310.0000.01115.72
7.1.300.0050.00515.48
7.1.290.0030.01415.62
7.1.280.0120.00015.73
7.1.270.0040.01115.61
7.1.260.0080.00515.74
7.1.200.0090.00015.73
7.1.100.0030.00818.00
7.1.70.0070.00716.91
7.1.60.0060.00617.02
7.1.50.0070.01816.83
7.1.00.0100.07022.46
7.0.200.0040.01916.38
7.0.140.0030.07321.92
7.0.110.0030.08720.05
7.0.100.0130.07319.89
7.0.90.0070.06019.90
7.0.80.0070.07720.01
7.0.70.0130.07319.97
7.0.60.0200.06719.93
7.0.50.0070.06720.03
7.0.40.0070.08319.75
7.0.30.0030.08319.85
7.0.20.0030.07319.81
7.0.10.0070.07719.75
7.0.00.0070.08319.71
5.6.280.0070.07020.89
5.6.260.0070.07720.55
5.6.250.0070.07720.74
5.6.240.0070.07020.63
5.6.230.0130.07320.62
5.6.220.0100.06320.57
5.6.210.0030.06320.56
5.6.200.0100.09020.37
5.6.190.0100.05720.68
5.6.180.0030.06320.68
5.6.170.0030.08320.61
5.6.160.0100.08320.66
5.6.150.0100.05320.46
5.6.140.0070.08020.64
5.6.130.0130.08020.44
5.6.120.0130.04720.51
5.6.110.0030.07720.44
5.6.100.0200.06320.48
5.6.90.0030.07020.62
5.6.80.0030.04719.92
5.6.70.0000.06020.03
5.6.60.0030.06719.91
5.6.50.0030.04020.06
5.6.40.0200.06319.87
5.6.30.0000.08719.86
5.6.20.0130.03019.81
5.6.10.0070.08019.82
5.6.00.0100.06719.92
5.5.380.0130.07317.56
5.5.370.0070.07317.55
5.5.360.0070.06717.58
5.5.350.0100.06017.68
5.5.340.0070.07318.05
5.5.330.0130.06017.90
5.5.320.0170.06018.13
5.5.310.0070.05718.27
5.5.300.0000.08017.89
5.5.290.0030.05717.90
5.5.280.0100.08018.19
5.5.270.0130.07018.26
5.5.260.0030.07018.12
5.5.250.0070.04717.86
5.5.240.0100.03317.30
5.5.230.0070.08717.42
5.5.220.0070.04317.48
5.5.210.0070.04017.25
5.5.200.0030.08017.27
5.5.190.0100.05717.43
5.5.180.0170.06317.46
5.5.160.0070.04717.24
5.5.150.0070.06317.21
5.5.140.0070.04317.24
5.5.130.0000.04717.24
5.5.120.0100.07017.60
5.5.110.0170.06017.53
5.5.100.0100.06017.05
5.5.90.0030.08017.11
5.5.80.0070.04017.14
5.5.70.0130.07017.13
5.5.60.0100.07017.34
5.5.50.0030.04717.34
5.5.40.0030.06317.13
5.5.30.0100.03317.03
5.5.20.0100.03717.04
5.5.10.0000.08017.25
5.5.00.0070.03317.14
5.4.450.0070.07319.32
5.4.440.0100.07019.34
5.4.430.0130.06719.56
5.4.420.0070.07719.29
5.4.410.0070.08719.21
5.4.400.0030.08719.23
5.4.390.0130.04018.91
5.4.380.0100.07019.01
5.4.370.0070.04718.97
5.4.360.0030.06019.26
5.4.350.0100.05319.07
5.4.340.0030.04318.91
5.4.320.0100.04318.97
5.4.310.0030.04319.20
5.4.300.0170.05318.97
5.4.290.0030.04318.96
5.4.280.0100.03019.04
5.4.270.0070.06318.95
5.4.260.0170.05718.96
5.4.250.0070.06318.96
5.4.240.0070.03719.20
5.4.230.0000.08719.14
5.4.220.0000.08019.31
5.4.210.0030.07018.99
5.4.200.0000.06718.99
5.4.190.0030.03718.96
5.4.180.0070.05318.96
5.4.170.0000.04018.93
5.4.160.0000.05019.29
5.4.150.0030.04319.16
5.4.140.0030.03716.58
5.4.130.0000.04716.39
5.4.120.0030.03316.38
5.4.110.0000.04316.54
5.4.100.0000.04016.41
5.4.90.0030.03716.41
5.4.80.0070.06716.29
5.4.70.0000.03716.46
5.4.60.0100.04716.23
5.4.50.0030.03716.45
5.4.40.0000.03716.59
5.4.30.0030.05716.56
5.4.20.0070.06316.38
5.4.10.0100.05716.38
5.4.00.0070.03715.89
5.3.290.0000.07314.79
5.3.280.0030.06314.68
5.3.270.0070.03714.60
5.3.260.0030.04314.62
5.3.250.0000.04314.58
5.3.240.0030.04314.59
5.3.230.0030.03314.61
5.3.220.0030.03314.54
5.3.210.0070.03314.70
5.3.200.0000.03314.41
5.3.190.0070.05714.69
5.3.180.0100.05714.56
5.3.170.0070.03014.70
5.3.160.0030.06014.55
5.3.150.0070.04714.57
5.3.140.0100.02714.78
5.3.130.0030.04014.77
5.3.120.0130.06014.63
5.3.110.0000.06714.57
5.3.100.0030.03714.13
5.3.90.0030.03714.10
5.3.80.0000.04014.24
5.3.70.0070.03314.02
5.3.60.0070.03013.99
5.3.50.0100.02713.97
5.3.40.0000.03713.96
5.3.30.0070.03713.75
5.3.20.0030.03713.77
5.3.10.0000.03013.66
5.3.00.0030.03013.71
5.2.170.0000.03011.97
5.2.160.0000.03311.97
5.2.150.0070.02311.97
5.2.140.0000.03011.97
5.2.130.0000.03311.97
5.2.120.0030.02311.97
5.2.110.0000.03011.97
5.2.100.0030.02311.97
5.2.90.0000.02711.97
5.2.80.0000.02711.97
5.2.70.0030.02311.97
5.2.60.0000.02711.97
5.2.50.0000.03011.97
5.2.40.0070.02311.97
5.2.30.0070.02311.97
5.2.20.0000.02711.97
5.2.10.0000.02311.97
5.2.00.0000.02311.97
5.1.60.0000.02011.97
5.1.50.0070.01711.97
5.1.40.0000.02011.97
5.1.30.0030.02311.97
5.1.20.0030.02011.97
5.1.10.0000.02311.97
5.1.00.0000.02311.97
5.0.50.0030.01311.97
5.0.40.0030.01311.97
5.0.30.0030.02711.97
5.0.20.0000.01711.97
5.0.10.0030.01711.97
5.0.00.0000.02711.97
4.4.90.0000.01311.97
4.4.80.0000.01311.97
4.4.70.0000.01311.97
4.4.60.0000.01311.97
4.4.50.0000.01311.97
4.4.40.0000.02011.97
4.4.30.0000.01311.97
4.4.20.0000.01311.97
4.4.10.0000.01311.97
4.4.00.0000.02311.97
4.3.110.0000.01711.97
4.3.100.0000.01311.97
4.3.90.0030.01011.97
4.3.80.0000.02011.97
4.3.70.0030.01011.97
4.3.60.0000.01311.97
4.3.50.0030.01011.97
4.3.40.0000.02311.97
4.3.30.0000.01311.97
4.3.20.0000.01311.97
4.3.10.0000.01311.97
4.3.00.0000.01311.97

preferences:
46.62 ms | 401 KiB | 5 Q