3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface ia { const c = 'Sea'; } class Foo implements ia { // const c = "Lake"; // Attempting to override ia's constant c in // this class triggers a fatal error. } class FooBar extends Foo implements ia { const c = 'Ocean'; // No error, class constant // overriding ia's definition. public function show(){ // ia's definition is still accessible. return ia::c; } public function showp(){ return parent::c; } } $i = new FooBar; echo FooBar::c; echo $i->show(); echo $i->showp();

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.01018.43
8.3.50.0150.00622.06
8.3.40.0120.00318.82
8.3.30.0140.00419.08
8.3.20.0050.00320.29
8.3.10.0060.00320.36
8.3.00.0060.00319.38
8.2.180.0150.00416.75
8.2.170.0070.00722.96
8.2.160.0100.00720.37
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0000.00922.23
8.2.110.0030.00722.24
8.2.100.0080.00317.91
8.2.90.0000.00818.92
8.2.80.0030.00617.97
8.2.70.0080.00017.47
8.2.60.0070.00417.79
8.2.50.0000.00818.07
8.2.40.0050.00218.34
8.2.30.0030.00619.31
8.2.20.0070.00017.61
8.2.10.0040.00418.05
8.2.00.0000.00917.68
8.1.280.0130.00725.92
8.1.270.0050.00323.89
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0090.00023.96
8.1.230.0000.01219.10
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0000.00817.23
8.1.190.0050.00317.23
8.1.180.0010.01018.10
8.1.170.0090.00318.44
8.1.160.0030.00521.92
8.1.150.0070.00318.87
8.1.140.0040.00417.43
8.1.130.0070.00017.75
8.1.120.0000.00717.37
8.1.110.0030.00317.48
8.1.100.0030.00317.46
8.1.90.0000.00817.41
8.1.80.0040.00417.43
8.1.70.0070.00017.43
8.1.60.0090.00017.60
8.1.50.0030.00617.48
8.1.40.0050.00317.50
8.1.30.0000.00817.64
8.1.20.0000.00717.59
8.1.10.0040.00417.53
8.1.00.0030.00517.55
8.0.300.0000.00718.77
8.0.290.0080.00016.75
8.0.280.0030.00318.38
8.0.270.0060.00317.16
8.0.260.0000.00617.28
8.0.250.0030.00316.89
8.0.240.0040.00416.97
8.0.230.0000.00616.91
8.0.220.0000.00716.85
8.0.210.0000.00716.80
8.0.200.0040.00416.93
8.0.190.0000.00816.92
8.0.180.0000.00716.84
8.0.170.0000.00916.88
8.0.160.0000.00816.98
8.0.150.0000.00816.86
8.0.140.0070.00016.91
8.0.130.0030.00313.39
8.0.120.0000.00716.84
8.0.110.0040.00416.86
8.0.100.0080.00016.71
8.0.90.0000.00816.87
8.0.80.0070.00716.89
8.0.70.0050.00216.79
8.0.60.0040.00416.96
8.0.50.0070.00016.69
8.0.30.0130.01016.96
8.0.20.0110.00717.40
8.0.10.0040.00417.05
8.0.00.0090.00916.80
7.4.330.0020.00215.00
7.4.320.0030.00316.52
7.4.300.0000.00716.39
7.4.290.0050.00316.60
7.4.280.0050.00316.43
7.4.270.0000.00816.44
7.4.260.0070.00016.48
7.4.250.0070.00016.50
7.4.240.0020.00516.43
7.4.230.0070.00016.29
7.4.220.0070.01016.50
7.4.210.0060.00816.55
7.4.200.0040.00516.34
7.4.160.0120.00816.43
7.4.150.0180.00617.40
7.4.140.0140.00617.86
7.4.130.0090.00716.48
7.4.120.0150.00516.48
7.4.110.0000.01716.49
7.4.100.0140.00316.55
7.4.90.0100.00716.52
7.4.80.0100.00719.37
7.4.70.0100.00816.55
7.4.60.0060.01216.53
7.4.50.0080.00016.41
7.4.40.0120.00416.38
7.4.30.0110.00816.48
7.4.10.0110.00714.88
7.4.00.0070.00914.77
7.3.330.0030.00313.33
7.3.320.0080.00013.32
7.3.310.0000.00716.27
7.3.300.0000.00716.30
7.3.290.0060.00916.32
7.3.280.0100.00816.29
7.3.270.0170.00017.40
7.3.260.0130.00416.31
7.3.250.0140.00816.42
7.3.240.0090.00916.57
7.3.230.0100.00716.39
7.3.210.0060.00916.49
7.3.200.0060.01119.39
7.3.190.0200.00616.36
7.3.180.0090.00616.43
7.3.170.0140.00516.38
7.3.160.0150.01216.33
7.3.130.0070.01014.76
7.3.120.0050.01014.70
7.3.110.0090.00914.78
7.3.100.0050.01114.90
7.3.90.0050.00814.74
7.3.80.0050.00914.86
7.3.70.0060.00814.80
7.3.60.0020.01114.78
7.3.50.0080.00614.66
7.3.40.0030.00814.74
7.3.30.0080.00514.82
7.3.20.0070.00516.58
7.3.10.0060.00516.58
7.3.00.0010.01016.50
7.2.330.0090.00916.45
7.2.320.0070.01016.49
7.2.310.0030.01516.24
7.2.300.0110.01116.68
7.2.290.0000.01616.65
7.2.260.0090.00914.78
7.2.250.0050.01314.93
7.2.240.0070.00915.01
7.2.230.0000.01514.53
7.2.220.0020.01014.98
7.2.210.0070.00314.84
7.2.200.0030.01114.69
7.2.190.0080.00614.85
7.2.180.0080.00314.93
7.2.170.0030.01014.86
7.2.160.0050.00814.73
7.2.150.0070.00716.59
7.2.140.0040.00816.72
7.2.130.0030.00916.63
7.2.120.0060.00716.85
7.2.110.0050.00816.77
7.2.100.0050.00716.71
7.2.90.0070.00516.78
7.2.80.0100.00316.84
7.2.70.0060.00616.60
7.2.60.0050.01016.69
7.2.50.0030.00916.77
7.2.40.0060.00716.68
7.2.30.0040.00816.80
7.2.20.0010.01316.70
7.2.10.0060.00616.65
7.2.00.0090.00617.39
7.1.330.0070.00715.79
7.1.320.0070.00515.68
7.1.310.0030.00615.45
7.1.300.0020.01215.67
7.1.290.0080.00515.67
7.1.280.0020.01015.63
7.1.270.0060.00715.35
7.1.260.0050.00515.59
7.1.250.0080.00615.65
7.1.240.0100.00315.77
7.1.230.0000.01115.44
7.1.220.0070.00315.54
7.1.210.0070.00315.58
7.1.200.0020.01215.71
7.1.190.0080.00615.50
7.1.180.0080.00415.63
7.1.170.0000.01015.59
7.1.160.0050.00515.79
7.1.150.0060.00515.68
7.1.140.0070.00515.57
7.1.130.0010.01215.60
7.1.120.0030.00915.59
7.1.110.0030.01115.55
7.1.100.0040.00716.42
7.1.90.0030.00815.53
7.1.80.0130.00315.54
7.1.70.0090.00716.04
7.1.60.0060.00916.89
7.1.50.0060.00715.90
7.1.40.0040.01115.69
7.1.30.0050.00615.78
7.1.20.0020.01215.64
7.1.10.0040.01015.52
7.1.00.0020.03317.84
7.0.330.0050.00815.25
7.0.320.0000.01215.26
7.0.310.0020.00915.12
7.0.300.0050.01015.38
7.0.290.0030.00615.10
7.0.280.0080.00315.23
7.0.270.0040.00615.24
7.0.260.0050.00715.22
7.0.250.0030.01015.52
7.0.240.0020.00815.36
7.0.230.0030.01015.19
7.0.220.0040.00815.42
7.0.210.0050.01015.16
7.0.200.0020.00815.86
7.0.190.0060.00315.22
7.0.180.0050.00915.38
7.0.170.0050.00815.27
7.0.160.0080.00515.43
7.0.150.0070.00515.17
7.0.140.0040.02817.61
7.0.130.0060.00615.46
7.0.120.0050.00715.12
7.0.110.0050.00815.32
7.0.100.0070.00715.16
7.0.90.0070.00615.38
7.0.80.0050.00715.33
7.0.70.0040.01015.20
7.0.60.0080.03016.88
7.0.50.0080.02816.13
7.0.40.0030.02115.54
7.0.30.0240.02515.66
7.0.20.0100.03215.63
7.0.10.0030.03015.60
7.0.00.0020.02315.56
5.6.400.0060.00614.05
5.6.390.0000.01614.39
5.6.380.0040.00814.04
5.6.370.0080.00614.15
5.6.360.0050.00714.17
5.6.350.0080.00614.29
5.6.340.0030.00814.02
5.6.330.0080.00614.31
5.6.320.0050.00714.12
5.6.310.0040.00614.25
5.6.300.0020.01114.54
5.6.290.0030.01014.42
5.6.280.0080.02516.53
5.6.270.0070.00514.22
5.6.260.0050.01014.44
5.6.250.0070.00514.06
5.6.240.0050.00714.18
5.6.230.0070.00614.13
5.6.220.0070.00714.19
5.6.210.0090.03016.36
5.6.200.0020.03415.47
5.6.190.0060.01916.42
5.6.180.0140.03016.21
5.6.170.0100.01816.20
5.6.160.0070.02916.24
5.6.150.0060.03215.60
5.6.140.0030.02715.58
5.6.130.0070.02015.67
5.6.120.0060.03216.32
5.6.110.0100.02716.34
5.6.100.0020.03416.41
5.6.90.0120.03016.55
5.6.80.0090.02716.14
5.6.70.0070.00514.14
5.6.60.0090.00714.26
5.6.50.0050.01014.03
5.6.40.0070.00414.21
5.6.30.0060.00714.14
5.6.20.0070.00714.24
5.6.10.0070.00814.05
5.6.00.0070.00514.03
5.5.380.0050.00512.79
5.5.370.0020.00912.63
5.5.360.0060.00312.70
5.5.350.0050.02015.25
5.5.340.0080.03014.51
5.5.330.0060.03215.22
5.5.320.0130.03015.15
5.5.310.0110.03215.22
5.5.300.0060.02914.34
5.5.290.0090.02814.47
5.5.280.0050.02815.31
5.5.270.0100.03015.41
5.5.260.0030.02015.37
5.5.250.0030.03115.27
5.5.240.0110.02515.11
5.5.230.0030.00712.42
5.5.220.0050.00512.60
5.5.210.0080.00712.53
5.5.200.0010.00712.61
5.5.190.0050.00612.64
5.5.180.0040.00912.69
5.5.170.0030.00812.43
5.5.160.0040.00512.55
5.5.150.0050.00812.57
5.5.140.0040.00612.74
5.5.130.0060.00512.66
5.5.120.0050.00712.72
5.5.110.0030.00712.53
5.5.100.0070.00612.52
5.5.90.0090.00612.73
5.5.80.0050.00512.57
5.5.70.0060.00412.50
5.5.60.0050.00712.67
5.5.50.0070.00412.54
5.5.40.0080.00312.61
5.5.30.0030.00812.51
5.5.20.0090.00612.64
5.5.10.0030.01012.56
5.5.00.0040.00612.50
5.4.450.0050.01714.65
5.4.440.0040.02514.52
5.4.430.0040.03114.63
5.4.420.0080.02714.65
5.4.410.0040.01514.57
5.4.400.0030.03114.47
5.4.390.0060.02014.45
5.4.380.0030.02314.54
5.4.370.0020.02014.49
5.4.360.0050.01714.52
5.4.350.0040.02314.53
5.4.340.0050.02414.58
5.4.330.0030.00312.21
5.4.320.0040.02014.49
5.4.310.0030.03014.52
5.4.300.0030.03014.54
5.4.290.0010.02914.55
5.4.280.0060.01814.45
5.4.270.0050.03014.54
5.4.260.0040.01814.54
5.4.250.0060.02014.55
5.4.240.0040.01914.50
5.4.230.0030.01814.50
5.4.220.0050.01914.41
5.4.210.0030.02914.42
5.4.200.0030.02214.43
5.4.190.0020.01814.50
5.4.180.0010.02514.52
5.4.170.0090.01414.42
5.4.160.0020.02914.54
5.4.150.0030.01714.53
5.4.140.0030.02313.66
5.4.130.0020.02913.65
5.4.120.0050.01913.61
5.4.110.0060.02513.68
5.4.100.0020.02913.63
5.4.90.0030.02713.61
5.4.80.0070.02513.66
5.4.70.0010.02213.60
5.4.60.0040.02113.64
5.4.50.0040.02113.64
5.4.40.0070.02313.56
5.4.30.0010.02513.61
5.4.20.0050.03113.65
5.4.10.0050.01613.66
5.4.00.0060.02413.46
5.3.290.0030.04312.93
5.3.280.0050.04012.85
5.3.270.0040.03012.89
5.3.260.0000.02912.95
5.3.250.0070.03712.88
5.3.240.0060.03812.88
5.3.230.0040.03912.89
5.3.220.0020.03912.88
5.3.210.0020.03812.92
5.3.200.0030.04012.90
5.3.190.0020.03412.86
5.3.180.0040.04212.99
5.3.170.0050.03812.86
5.3.160.0030.02812.85
5.3.150.0090.02912.99
5.3.140.0030.04012.86
5.3.130.0000.04112.88
5.3.120.0000.04312.87
5.3.110.0000.02912.95
5.3.100.0050.03212.56
5.3.90.0030.03812.56
5.3.80.0040.03912.56
5.3.70.0080.02512.60
5.3.60.0030.02312.58
5.3.50.0020.04512.56
5.3.40.0050.04012.58
5.3.30.0050.03512.54
5.3.20.0000.04212.51
5.3.10.0060.03312.37
5.3.00.0050.02712.45
5.2.170.0070.03011.61
5.2.160.0030.03211.61
5.2.150.0030.02811.61
5.2.140.0050.03311.61
5.2.130.0070.02711.61
5.2.120.0030.03611.61
5.2.110.0020.02511.61
5.2.100.0030.03211.61
5.2.90.0030.02111.61
5.2.80.0020.02311.61
5.2.70.0030.02011.61
5.2.60.0060.01811.61
5.2.50.0030.02011.61
5.2.40.0030.03111.61
5.2.30.0050.03211.61
5.2.20.0070.02811.61
5.2.10.0030.01611.61
5.2.00.0000.02311.61
5.1.60.0000.01411.61
5.1.50.0000.02411.61
5.1.40.0020.01511.61
5.1.30.0000.01711.61
5.1.20.0040.01611.61
5.1.10.0000.01411.61
5.1.00.0040.01511.61
5.0.50.0040.01011.61
5.0.40.0020.01211.61
5.0.30.0020.01911.61
5.0.20.0070.01011.61
5.0.10.0020.01111.61
5.0.00.0030.01511.61
4.4.90.0020.01811.61
4.4.80.0030.01111.61
4.4.70.0000.02011.61
4.4.60.0020.01811.61
4.4.50.0000.01211.61
4.4.40.0050.01011.61
4.4.30.0030.00711.61
4.4.20.0020.00811.61
4.4.10.0040.00711.61
4.4.00.0000.01711.61
4.3.110.0030.00711.61
4.3.100.0030.00811.61
4.3.90.0020.00811.61
4.3.80.0000.01711.61
4.3.70.0020.01011.61
4.3.60.0000.01011.61
4.3.50.0020.01011.61
4.3.40.0000.01511.61
4.3.30.0020.01011.61
4.3.20.0030.00811.61
4.3.10.0000.01211.61
4.3.00.0000.00911.61

preferences:
42.88 ms | 401 KiB | 5 Q