3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Source: https://bugs.php.net/bug.php?id=66015 class Test { const FIRST = '1'; protected static $array = [ self::FIRST => 'first', 'second', 'third' ]; public function __construct() { var_export(self::$array); } } $test = 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.0120.00318.18
8.3.50.0060.00921.99
8.3.40.0110.00718.64
8.3.30.0140.00019.04
8.3.20.0000.00820.16
8.3.10.0040.00421.93
8.3.00.0080.00022.32
8.2.180.0110.00716.63
8.2.170.0100.01018.84
8.2.160.0090.00622.96
8.2.150.0080.00024.18
8.2.140.0130.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00017.63
8.2.110.0030.00622.29
8.2.100.0090.00317.91
8.2.90.0080.00019.13
8.2.80.0000.00818.04
8.2.70.0060.00617.50
8.2.60.0040.00417.93
8.2.50.0060.00318.07
8.2.40.0030.00518.22
8.2.30.0030.00617.96
8.2.20.0050.00317.51
8.2.10.0000.00819.45
8.2.00.0030.00517.50
8.1.280.0090.00925.92
8.1.270.0000.00822.14
8.1.260.0040.00426.35
8.1.250.0070.00328.09
8.1.240.0060.00323.88
8.1.230.0000.01118.96
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00717.35
8.1.190.0020.00517.41
8.1.180.0050.00318.10
8.1.170.0000.00818.51
8.1.160.0040.00421.87
8.1.150.0070.00018.48
8.1.140.0000.00717.45
8.1.130.0000.00817.75
8.1.120.0050.00217.34
8.1.110.0040.00417.38
8.1.100.0040.00417.36
8.1.90.0000.00717.36
8.1.80.0000.00717.43
8.1.70.0030.00317.27
8.1.60.0030.00517.62
8.1.50.0070.00017.42
8.1.40.0030.00617.41
8.1.30.0030.00517.68
8.1.20.0000.00817.63
8.1.10.0060.00317.58
8.1.00.0000.00717.55
8.0.300.0040.00418.77
8.0.290.0080.00016.93
8.0.280.0030.00318.34
8.0.270.0040.00417.20
8.0.260.0080.00016.76
8.0.250.0070.00016.80
8.0.240.0050.00216.79
8.0.230.0030.00316.93
8.0.220.0030.00316.72
8.0.210.0070.00016.80
8.0.200.0000.00716.75
8.0.190.0060.00616.86
8.0.180.0080.00016.78
8.0.170.0040.00416.77
8.0.160.0000.00716.82
8.0.150.0070.00016.73
8.0.140.0030.00516.68
8.0.130.0030.00313.20
8.0.120.0020.00516.75
8.0.110.0000.00816.84
8.0.100.0040.00416.88
8.0.90.0030.00316.85
8.0.80.0090.00616.88
8.0.70.0070.00016.70
8.0.60.0000.00716.70
8.0.50.0070.00016.81
8.0.30.0140.00617.21
8.0.20.0090.00917.41
8.0.10.0000.00716.78
8.0.00.0120.00716.80
7.4.330.0030.00315.01
7.4.320.0030.00316.58
7.4.300.0000.00616.58
7.4.290.0000.00616.41
7.4.280.0080.00016.42
7.4.270.0080.00016.61
7.4.260.0040.00416.46
7.4.250.0040.00416.55
7.4.240.0050.00216.52
7.4.230.0000.00716.50
7.4.220.0030.01416.54
7.4.210.0110.00516.56
7.4.200.0050.00216.41
7.4.190.0040.00416.47
7.4.160.0130.00316.49
7.4.150.0130.01017.40
7.4.140.0120.01217.86
7.4.130.0080.01416.56
7.4.120.0080.00816.61
7.4.110.0130.01016.73
7.4.100.0030.01316.41
7.4.90.0120.00616.28
7.4.80.0130.00919.39
7.4.70.0130.00316.50
7.4.60.0130.00316.41
7.4.50.0000.00816.32
7.4.40.0070.01122.77
7.4.30.0030.01316.73
7.4.00.0060.00915.08
7.3.330.0000.00513.08
7.3.320.0000.00513.11
7.3.310.0060.00016.18
7.3.300.0070.00016.29
7.3.290.0120.00316.27
7.3.280.0080.00916.32
7.3.270.0130.01017.40
7.3.260.0140.00316.29
7.3.250.0130.00416.23
7.3.240.0150.00316.20
7.3.230.0050.01016.51
7.3.210.0070.01016.20
7.3.200.0170.00619.39
7.3.190.0120.00316.38
7.3.180.0030.01716.31
7.3.170.0040.01116.31
7.3.160.0030.01316.25
7.3.120.0000.01815.06
7.3.110.0040.00814.79
7.3.100.0000.01514.68
7.3.90.0120.00414.72
7.3.80.0070.00314.54
7.3.70.0060.00314.73
7.3.60.0030.00714.89
7.3.50.0030.00914.79
7.3.40.0080.00414.40
7.3.30.0060.00614.79
7.3.20.0080.00016.62
7.3.10.0060.00516.47
7.3.00.0020.01416.64
7.2.330.0130.00716.55
7.2.320.0110.00716.64
7.2.310.0100.00716.70
7.2.300.0070.01516.78
7.2.290.0110.01116.34
7.2.240.0030.01314.69
7.2.230.0060.01015.03
7.2.220.0000.01415.16
7.2.210.0030.00914.88
7.2.200.0040.01214.66
7.2.190.0060.00914.89
7.2.180.0090.00614.80
7.2.170.0080.00014.89
7.2.160.0040.00414.81
7.2.150.0030.01017.00
7.2.140.0070.00716.91
7.2.130.0070.00916.71
7.2.120.0050.01216.75
7.2.110.0120.00916.66
7.2.100.0090.01116.67
7.2.90.0070.00616.81
7.2.80.0120.00516.78
7.2.70.0110.00816.88
7.2.60.0120.00616.72
7.2.50.0090.00616.69
7.2.40.0140.01016.76
7.2.30.0050.00816.56
7.2.20.0040.01316.80
7.2.10.0070.00716.78
7.2.00.0100.00517.60
7.1.330.0030.00715.77
7.1.320.0100.00315.62
7.1.310.0030.01015.66
7.1.300.0040.00715.56
7.1.290.0070.00715.66
7.1.280.0040.00415.65
7.1.270.0070.00015.61
7.1.260.0070.00715.89
7.1.250.0160.00315.54
7.1.200.0040.00715.80
7.1.100.0790.00716.13
7.1.70.0050.00216.59
7.1.60.0170.00719.82
7.1.50.0050.00516.48
7.1.00.0030.07722.28
7.0.200.0070.00716.54
7.0.140.0070.07022.12
7.0.60.0130.07719.82
7.0.50.0070.04017.87
7.0.40.0070.07320.18
7.0.30.0270.05320.07
7.0.20.0300.07320.09
7.0.10.0100.08020.25
7.0.00.0070.05720.12
5.6.280.0070.07021.00
5.6.210.0130.05320.76
5.6.200.0000.04318.19
5.6.190.0100.04320.50
5.6.180.3230.04720.61
5.6.170.0130.04720.47
5.6.160.0170.06020.71
5.6.150.0100.08018.18
5.6.140.0100.07718.17
5.6.130.0000.04318.18
5.6.120.0100.05321.01
5.6.110.0130.08021.01
5.6.100.0070.05720.97
5.6.90.0030.05720.98
5.6.80.0030.04020.41
5.6.70.3670.04320.50
5.5.350.0030.08320.32
5.5.340.0030.08717.99
5.5.330.0030.04320.27
5.5.320.0230.04720.34
5.5.310.0370.06720.39
5.5.300.0070.03718.07
5.5.290.0130.07317.98
5.5.280.0070.08320.85
5.5.270.0030.08320.97
5.5.260.0100.08020.86
5.5.250.0070.03720.69
5.5.240.0270.07020.26
5.4.450.0400.05019.57
5.4.440.1070.04319.52
5.4.430.0430.03319.56
5.4.420.0630.05019.27
5.4.410.0200.04318.95
5.4.400.0070.06318.64
5.4.390.0100.05318.52
5.4.380.0130.05318.77
5.4.370.0200.04718.79
5.4.360.0100.05718.75
5.4.350.0170.05318.80
5.4.340.0100.05718.46
5.4.320.0040.03812.50
5.4.310.0050.03912.50
5.4.300.0060.04212.50
5.4.290.0060.05012.50
5.4.280.0040.04112.36
5.4.270.0040.03912.36
5.4.260.0030.04012.37
5.4.250.0040.03812.36
5.4.240.0070.04012.36
5.4.230.0030.04012.36
5.4.220.0060.03512.36
5.4.210.0020.03812.36
5.4.200.0080.03412.36
5.4.190.0050.03612.35
5.4.180.0020.03912.36
5.4.170.0040.03712.36
5.4.160.0050.03712.36
5.4.150.0050.04012.35
5.4.140.0090.03312.04
5.4.130.0060.04112.02
5.4.120.0050.03511.98
5.4.110.0070.03311.98
5.4.100.0020.03811.98
5.4.90.0070.03611.98
5.4.80.0070.03711.98
5.4.70.0050.03711.97
5.4.60.0070.03711.98
5.4.50.0060.03511.97
5.4.40.0040.03511.96
5.4.30.0050.03511.96
5.4.20.0040.03511.96
5.4.10.0030.03611.96
5.4.00.0050.03611.44
5.3.290.0050.05712.80
5.3.280.0070.04012.71
5.3.270.0070.03712.72
5.3.260.0090.03612.72
5.3.250.0030.04012.72
5.3.240.0080.04212.72
5.3.230.0060.03812.71
5.3.220.0090.03612.68
5.3.210.0090.04012.68
5.3.200.0050.03712.68
5.3.190.0070.04112.68
5.3.180.0050.03812.67
5.3.170.0060.03612.67
5.3.160.0070.03912.67
5.3.150.0030.03912.67
5.3.140.0050.04012.66
5.3.130.0060.03912.66
5.3.120.0080.04612.65
5.3.110.0060.03912.66
5.3.100.0040.04212.12
5.3.90.0050.03912.08
5.3.80.0040.03912.08
5.3.70.0060.04512.07
5.3.60.0060.03612.07
5.3.50.0060.03512.00
5.3.40.0050.03712.00
5.3.30.0040.03711.95
5.3.20.0060.03411.73
5.3.10.0020.04311.68
5.3.00.0020.03911.67
5.2.170.0060.0299.18
5.2.160.0050.0309.18
5.2.150.0070.0279.18
5.2.140.0050.0299.18
5.2.130.0050.0289.14
5.2.120.0030.0339.13
5.2.110.0060.0269.14
5.2.100.0040.0279.14
5.2.90.0040.0299.14
5.2.80.0030.0319.13
5.2.70.0020.0329.13
5.2.60.0030.0319.08
5.2.50.0050.0299.06
5.2.40.0040.0299.03
5.2.30.0060.0289.01
5.2.20.0070.0319.00
5.2.10.0040.0338.91
5.2.00.0030.0308.77
5.1.60.0060.0248.05
5.1.50.0030.0258.05
5.1.40.0020.0258.04
5.1.30.0050.0258.38
5.1.20.0010.0288.41
5.1.10.0040.0268.13
5.1.00.0040.0258.13
5.0.50.0030.0206.60
5.0.40.0020.0206.46
5.0.30.0040.0296.28
5.0.20.0020.0206.24
5.0.10.0040.0186.22
5.0.00.0030.0316.21
4.4.90.0040.0144.78
4.4.80.0020.0154.76
4.4.70.0020.0164.75
4.4.60.0020.0154.76
4.4.50.0020.0164.77
4.4.40.0010.0264.70
4.4.30.0020.0164.76
4.4.20.0030.0214.85
4.4.10.0040.0174.85
4.4.00.0010.0284.76
4.3.110.0020.0164.67
4.3.100.0030.0144.66
4.3.90.0030.0144.63
4.3.80.0030.0234.58
4.3.70.0030.0144.63
4.3.60.0030.0134.63
4.3.50.0020.0164.62
4.3.40.0010.0254.54
4.3.30.0010.0173.29
4.3.20.0050.0153.26
4.3.10.0010.0163.23
4.3.00.0000.01715.11

preferences:
29.1 ms | 401 KiB | 5 Q