3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Source: https://bugs.php.net/bug.php?id=66015 class Test { const FIRST = 'waa'; const SECOND = 2; const THIRD = 3; 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.0070.01418.14
8.3.50.0100.00521.98
8.3.40.0140.00018.70
8.3.30.0120.00318.95
8.3.20.0080.00020.29
8.3.10.0080.00021.93
8.3.00.0030.00522.43
8.2.180.0190.00416.50
8.2.170.0110.01122.96
8.2.160.0110.00420.95
8.2.150.0030.00524.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00017.50
8.2.110.0000.00921.07
8.2.100.0110.00018.03
8.2.90.0040.00419.23
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0000.00917.80
8.2.50.0040.00418.10
8.2.40.0050.00320.33
8.2.30.0040.00420.88
8.2.20.0000.00717.47
8.2.10.0080.00019.33
8.2.00.0040.00417.66
8.1.280.0070.00725.92
8.1.270.0050.00523.96
8.1.260.0040.00426.35
8.1.250.0110.00728.09
8.1.240.0070.00322.87
8.1.230.0080.00320.30
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0030.00617.23
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0040.00418.68
8.1.160.0050.00218.88
8.1.150.0050.00220.07
8.1.140.0030.00517.33
8.1.130.0030.00317.79
8.1.120.0000.00717.30
8.1.110.0090.00017.29
8.1.100.0000.00717.45
8.1.90.0040.00417.39
8.1.80.0000.00717.41
8.1.70.0070.00017.39
8.1.60.0030.00517.46
8.1.50.0000.00717.50
8.1.40.0050.00217.53
8.1.30.0040.00417.68
8.1.20.0050.00317.66
8.1.10.0060.00317.53
8.1.00.0040.00417.55
8.0.300.0000.00819.15
8.0.290.0070.00016.75
8.0.280.0000.00818.34
8.0.270.0060.00317.21
8.0.260.0000.00616.66
8.0.250.0070.00016.79
8.0.240.0030.00516.78
8.0.230.0040.00416.82
8.0.220.0070.00016.84
8.0.210.0040.00416.79
8.0.200.0060.00016.75
8.0.190.0040.00716.91
8.0.180.0070.00016.74
8.0.170.0000.00816.80
8.0.160.0000.00716.71
8.0.150.0000.00716.86
8.0.140.0030.00316.81
8.0.130.0000.00513.34
8.0.120.0000.00716.74
8.0.110.0000.00816.72
8.0.100.0000.00716.66
8.0.90.0080.00016.82
8.0.80.0090.00616.75
8.0.70.0070.00016.82
8.0.60.0040.00416.83
8.0.50.0040.00316.73
8.0.30.0130.00617.14
8.0.20.0070.01217.40
8.0.10.0040.00416.77
8.0.00.0110.00816.67
7.4.330.0000.00615.14
7.4.320.0030.00416.44
7.4.300.0030.00316.61
7.4.290.0080.00016.47
7.4.280.0070.00016.54
7.4.270.0030.00316.40
7.4.260.0070.00016.63
7.4.250.0000.00716.49
7.4.240.0030.00416.56
7.4.230.0030.00316.39
7.4.220.0140.00716.64
7.4.210.0090.00616.53
7.4.200.0000.00716.43
7.4.190.0000.00716.71
7.4.160.0120.00616.61
7.4.150.0090.01117.40
7.4.140.0160.00517.86
7.4.130.0070.01016.61
7.4.120.0100.00816.54
7.4.110.0030.01316.32
7.4.100.0110.00716.32
7.4.90.0100.00716.60
7.4.80.0130.00319.39
7.4.70.0130.00616.68
7.4.60.0100.01016.47
7.4.50.0030.00516.30
7.4.40.0090.00622.77
7.4.30.0090.00916.30
7.4.00.0060.00915.11
7.3.330.0030.00313.27
7.3.320.0000.00513.31
7.3.310.0000.00616.19
7.3.300.0070.00216.21
7.3.290.0070.00716.41
7.3.280.0070.01216.29
7.3.270.0060.01117.40
7.3.260.0140.00816.27
7.3.250.0080.01216.25
7.3.240.0070.01016.37
7.3.230.0030.01316.51
7.3.210.0100.00716.31
7.3.200.0100.00719.39
7.3.190.0140.00816.48
7.3.180.0100.01016.63
7.3.170.0090.00616.27
7.3.160.0100.00716.24
7.3.120.0100.00714.49
7.3.10.0030.00616.38
7.3.00.0030.00616.52
7.2.330.0070.01316.35
7.2.320.0090.00816.64
7.2.310.0090.00916.30
7.2.300.0070.01016.71
7.2.290.0070.01016.31
7.2.130.0060.00616.63
7.2.120.0030.00716.93
7.2.110.0070.01016.77
7.2.100.0040.00716.54
7.2.90.0000.01117.04
7.2.80.0060.00616.53
7.2.70.0060.00616.92
7.2.60.0040.00817.04
7.2.50.0060.00616.67
7.2.40.0030.01017.03
7.2.30.0000.00916.90
7.2.20.0070.00416.87
7.2.10.0030.00616.77
7.2.00.0060.00818.02
7.1.250.0060.00615.89
7.1.100.0650.01416.25
7.1.70.0040.00417.02
7.1.60.0070.01719.82
7.1.50.0060.00616.61
7.1.00.0000.07322.28
7.0.200.1750.01316.44
7.0.140.0070.07022.00
7.0.60.0030.04019.92
7.0.50.0130.07317.85
7.0.40.0100.07320.10
7.0.30.0130.04720.23
7.0.20.0330.07720.07
7.0.10.0230.03720.07
7.0.00.0070.04320.33
5.6.280.0030.07321.11
5.6.210.0030.08320.44
5.6.200.0070.04318.23
5.6.190.0070.05720.77
5.6.180.0270.07720.30
5.6.170.0230.04720.54
5.6.160.0070.05320.76
5.6.150.0000.05018.23
5.6.140.0100.06718.23
5.6.130.0100.08018.21
5.6.120.0030.05720.98
5.6.110.0070.08021.00
5.6.100.0100.05721.11
5.6.90.0170.07020.98
5.6.80.0070.06020.39
5.6.70.0300.07320.39
5.5.350.0400.07020.39
5.5.340.0030.08318.09
5.5.330.0130.07720.27
5.5.320.0130.06020.41
5.5.310.0230.07720.30
5.5.300.0030.06317.95
5.5.290.0070.08317.96
5.5.280.0100.08020.98
5.5.270.0170.07720.80
5.5.260.0130.04320.64
5.5.250.0030.08320.69
5.5.240.0030.05320.26
5.4.450.0130.06319.57
5.4.440.0230.07019.30
5.4.430.0200.06319.26
5.4.420.0070.07019.42
5.4.410.0130.05318.91
5.4.400.0130.06018.60
5.4.390.0200.06318.62
5.4.380.0100.06018.70
5.4.370.0200.04718.84
5.4.360.0230.04318.71
5.4.350.0170.05018.56
5.4.340.0130.05318.89
5.4.320.0050.03712.50
5.4.310.0090.03712.50
5.4.300.0050.03712.50
5.4.290.0040.04012.49
5.4.280.0050.03612.36
5.4.270.0050.04012.36
5.4.260.0040.03912.36
5.4.250.0090.04112.36
5.4.240.0070.03412.37
5.4.230.0060.03812.36
5.4.220.0040.03712.36
5.4.210.0060.04512.36
5.4.200.0050.04012.36
5.4.190.0050.03912.35
5.4.180.0090.03912.36
5.4.170.0030.03712.36
5.4.160.0040.03712.36
5.4.150.0070.03412.35
5.4.140.0020.04012.04
5.4.130.0060.03412.02
5.4.120.0060.03411.98
5.4.110.0070.03311.98
5.4.100.0070.03311.97
5.4.90.0110.04111.98
5.4.80.0070.04911.98
5.4.70.0050.04811.98
5.4.60.0020.03811.97
5.4.50.0080.03211.98
5.4.40.0150.02411.96
5.4.30.0070.03811.96
5.4.20.0080.03311.96
5.4.10.0060.03411.96
5.4.00.0050.03611.45
5.3.290.0110.03912.80
5.3.280.0040.03912.71
5.3.270.0050.04012.73
5.3.260.0060.03912.72
5.3.250.0100.03312.72
5.3.240.0160.02712.72
5.3.230.0110.03112.71
5.3.220.0020.04012.68
5.3.210.0040.04012.68
5.3.200.0070.03512.68
5.3.190.0060.03812.68
5.3.180.0060.03612.67
5.3.170.0030.03912.67
5.3.160.0090.03312.67
5.3.150.0040.03912.67
5.3.140.0030.03912.66
5.3.130.0040.04312.66
5.3.120.0060.03812.66
5.3.110.0060.03812.66
5.3.100.0090.03512.12
5.3.90.0060.03612.09
5.3.80.0110.03212.08
5.3.70.0050.03712.07
5.3.60.0070.03612.06
5.3.50.0040.03912.00
5.3.40.0070.03812.00
5.3.30.0050.03511.95
5.3.20.0070.03411.73
5.3.10.0040.03611.68
5.3.00.0050.03711.68
5.2.170.0050.0309.17
5.2.160.0080.0289.18
5.2.150.0040.0319.18
5.2.140.0080.0279.17
5.2.130.0060.0389.13
5.2.120.0050.0289.13
5.2.110.0040.0369.14
5.2.100.0080.0259.14
5.2.90.0030.0309.14
5.2.80.0050.0299.13
5.2.70.0040.0309.13
5.2.60.0040.0309.08
5.2.50.0050.0379.06
5.2.40.0040.0299.03
5.2.30.0020.0329.01
5.2.20.0020.0309.00
5.2.10.0060.0308.91
5.2.00.0060.0278.77
5.1.60.0020.0258.05
5.1.50.0030.0268.05
5.1.40.0020.0258.04
5.1.30.0040.0258.38
5.1.20.0050.0258.42
5.1.10.0040.0268.13
5.1.00.0110.0308.13
5.0.50.0050.0236.60
5.0.40.0050.0186.47
5.0.30.0060.0296.28
5.0.20.0020.0216.25
5.0.10.0040.0226.22
5.0.00.0040.0296.22
4.4.90.0040.0144.78
4.4.80.0010.0164.75
4.4.70.0020.0164.75
4.4.60.0020.0154.75
4.4.50.0040.0144.77
4.4.40.0040.0234.70
4.4.30.0040.0144.76
4.4.20.0000.0184.84
4.4.10.0030.0194.85
4.4.00.0040.0274.76
4.3.110.0020.0194.67
4.3.100.0020.0154.66
4.3.90.0050.0124.63
4.3.80.0040.0244.58
4.3.70.0010.0174.63
4.3.60.0010.0164.63
4.3.50.0020.0164.63
4.3.40.0030.0244.54
4.3.30.0010.0173.29
4.3.20.0020.0163.26
4.3.10.0030.0143.23
4.3.00.0270.01313.29

preferences:
49.48 ms | 400 KiB | 5 Q