3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $a = 1; public function getA() { return $this->a; } } class B extends A { private $a = 2; } $b = new B(); echo $b->getA();

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.0140.00718.18
8.3.50.0100.00722.11
8.3.40.0060.00818.32
8.3.30.0110.00419.06
8.3.20.0070.00020.17
8.3.10.0040.00423.61
8.3.00.0080.00018.89
8.2.180.0090.00916.63
8.2.170.0090.00922.96
8.2.160.0030.01020.57
8.2.150.0040.00424.18
8.2.140.0090.00624.66
8.2.130.0000.00726.16
8.2.120.0080.00019.36
8.2.110.0000.01022.31
8.2.100.0080.00317.78
8.2.90.0040.00419.22
8.2.80.0060.00317.97
8.2.70.0040.00417.63
8.2.60.0040.00417.80
8.2.50.0000.00918.07
8.2.40.0000.00819.88
8.2.30.0040.00418.30
8.2.20.0030.00617.55
8.2.10.0000.00717.86
8.2.00.0050.00319.40
8.1.280.0130.00725.92
8.1.270.0080.00023.84
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0000.01023.99
8.1.230.0060.00619.07
8.1.220.0030.00517.74
8.1.210.0050.00318.77
8.1.200.0000.01017.22
8.1.190.0040.00417.10
8.1.180.0000.00818.10
8.1.170.0040.00418.55
8.1.160.0020.00521.82
8.1.150.0040.00418.46
8.1.140.0070.00017.29
8.1.130.0040.00417.81
8.1.120.0060.00317.39
8.1.110.0000.00817.30
8.1.100.0070.00017.29
8.1.90.0070.00017.34
8.1.80.0030.00517.36
8.1.70.0030.00317.35
8.1.60.0050.00317.48
8.1.50.0040.00417.47
8.1.40.0040.00417.46
8.1.30.0040.00417.67
8.1.20.0050.00317.61
8.1.10.0030.00517.58
8.1.00.0000.00817.48
8.0.300.0080.00018.77
8.0.290.0040.00416.75
8.0.280.0000.00818.49
8.0.270.0050.00317.29
8.0.260.0050.00317.30
8.0.250.0030.00316.85
8.0.240.0030.00316.86
8.0.230.0040.00416.91
8.0.220.0030.00316.71
8.0.210.0030.00316.80
8.0.200.0030.00316.90
8.0.190.0000.00716.77
8.0.180.0040.00416.75
8.0.170.0040.00416.90
8.0.160.0050.00216.82
8.0.150.0000.00716.67
8.0.140.0000.00816.68
8.0.130.0000.00613.20
8.0.120.0070.00016.64
8.0.110.0060.00316.74
8.0.100.0000.00716.80
8.0.90.0070.00016.86
8.0.80.0090.00616.76
8.0.70.0040.00416.62
8.0.60.0000.00716.77
8.0.50.0040.00416.77
8.0.30.0070.01117.01
8.0.20.0090.01017.40
8.0.10.0030.00616.71
8.0.00.0110.00816.77
7.4.330.0000.00715.09
7.4.320.0060.00016.57
7.4.300.0040.00416.47
7.4.290.0000.00716.50
7.4.280.0040.00416.54
7.4.270.0000.00716.64
7.4.260.0030.00316.43
7.4.250.0040.00416.59
7.4.240.0040.00316.53
7.4.230.0040.00416.62
7.4.220.0060.01016.59
7.4.210.0080.01216.54
7.4.200.0030.00316.63
7.4.160.0070.01116.56
7.4.150.0110.00817.40
7.4.140.0120.00517.86
7.4.130.0050.01416.64
7.4.120.0110.00616.33
7.4.110.0170.00016.52
7.4.100.0070.01016.47
7.4.90.0060.01216.29
7.4.80.0110.00719.39
7.4.70.0130.00616.66
7.4.60.0030.01416.65
7.4.50.0000.00416.53
7.4.40.0000.01716.51
7.4.30.0090.00616.51
7.4.00.0100.00814.96
7.3.330.0000.00513.17
7.3.320.0000.00513.31
7.3.310.0030.00316.10
7.3.300.0070.00016.20
7.3.290.0060.01016.22
7.3.280.0110.00716.23
7.3.270.0060.01317.40
7.3.260.0120.00616.48
7.3.250.0090.00716.25
7.3.240.0110.00516.47
7.3.230.0100.01316.39
7.3.210.0080.00816.52
7.3.200.0130.00319.39
7.3.190.0070.01416.53
7.3.180.0090.00616.43
7.3.170.0030.01316.37
7.3.160.0120.00916.51
7.3.120.0090.00614.63
7.3.110.0090.00914.68
7.3.100.0030.01014.49
7.3.90.0080.00414.60
7.3.80.0060.00614.71
7.3.70.0030.01014.69
7.3.60.0100.00314.52
7.3.50.0090.00614.39
7.3.40.0040.01114.74
7.3.30.0100.00614.66
7.3.20.0030.01216.70
7.3.10.0120.00616.58
7.3.00.0100.00316.36
7.2.330.0070.01016.78
7.2.320.0060.01816.55
7.2.310.0100.00716.51
7.2.300.0060.00916.55
7.2.290.0000.01716.66
7.2.250.0070.01115.21
7.2.240.0040.01515.04
7.2.230.0040.01114.95
7.2.220.0060.00615.10
7.2.210.0080.00814.68
7.2.200.0080.00815.18
7.2.190.0060.00615.12
7.2.180.0000.00914.90
7.2.170.0030.01315.04
7.2.00.0000.01519.27
7.1.330.0040.01115.60
7.1.320.0030.00615.89
7.1.310.0000.01215.82
7.1.300.0060.00615.65
7.1.290.0060.00615.78
7.1.280.0100.00615.67
7.1.270.0000.01215.37
7.1.260.0090.00415.80
7.1.100.0000.01418.04
7.1.70.0050.00316.73
7.1.60.0110.01419.70
7.1.50.0140.01016.69
7.1.00.0030.07722.34
7.0.200.0030.00716.75
7.0.140.0070.07022.18
7.0.60.0030.08321.71
7.0.50.0130.05317.88
7.0.40.0030.04320.15
7.0.30.0430.07320.24
7.0.20.0270.08020.30
7.0.10.0030.04320.20
7.0.00.0100.07320.21
5.6.280.0000.07721.04
5.6.210.0070.05720.75
5.6.200.0100.07018.21
5.6.190.0070.08320.48
5.6.180.0270.06320.63
5.6.170.0130.05720.55
5.6.160.0100.05020.61
5.6.150.0030.08318.30
5.6.140.0100.06718.18
5.6.130.0070.06718.14
5.6.120.0070.08321.01
5.6.110.0000.09021.00
5.6.100.0170.07021.09
5.6.90.0130.06721.08
5.6.80.0100.07720.41
5.5.350.3400.03720.39
5.5.340.0070.03717.96
5.5.330.0030.05320.19
5.5.320.0400.04320.28
5.5.310.0230.05320.39
5.5.300.0130.07718.07
5.5.290.0070.05317.99
5.5.280.0070.03720.77
5.5.270.0070.08020.78
5.5.260.0130.05320.80
5.5.250.0130.08020.50
5.5.240.0100.07320.36
5.4.450.3230.05019.50
5.4.440.0000.05019.34
5.4.430.1700.05319.43
5.4.420.4230.04019.23
5.4.410.3670.03319.22
5.4.400.5630.02318.91
5.4.390.3730.04319.05
5.4.380.3800.03019.02
5.4.370.3930.03719.11
5.4.360.4000.04019.11
5.4.350.4330.04019.11
5.4.340.4530.04719.15
5.4.320.4630.03319.19
5.4.310.4130.03719.11
5.4.300.3730.03318.95
5.4.290.3670.03019.09
5.4.280.3770.04019.11
5.4.270.3670.03319.10
5.4.260.3600.03718.93
5.4.250.3600.03719.06
5.4.240.3530.04018.96
5.4.230.3970.03719.16
5.4.220.0070.08019.18
5.4.210.3870.04319.20
5.4.200.4670.04018.90
5.4.190.4470.04319.10
5.4.180.4470.04319.20
5.4.170.4570.03319.15
5.4.160.4500.03718.99
5.4.150.4430.03718.86
5.4.140.0070.05716.39
5.4.130.0000.06016.40
5.4.120.2430.05016.49
5.4.110.4630.03716.43
5.4.100.4870.02716.57
5.4.90.4600.03316.52
5.4.80.4600.03716.43
5.4.70.4630.03316.42
5.4.60.4570.03316.40
5.4.50.4570.03316.25
5.4.40.4770.03716.15
5.4.30.4030.03716.38
5.4.20.3830.03016.18
5.4.10.4570.04016.39
5.4.00.4230.03015.84
5.3.290.4230.04314.84
5.3.280.0100.05714.66
5.3.270.5330.03014.68
5.3.260.4370.04014.62
5.3.250.4600.02714.66
5.3.240.3870.03714.61
5.3.230.0000.04314.67
5.3.220.4170.04014.57
5.3.210.4770.05014.56
5.3.200.4200.04014.47
5.3.190.4570.04014.57
5.3.180.4670.03014.62
5.3.170.4600.03714.71
5.3.160.4600.04014.57
5.3.150.4570.04014.56
5.3.140.4800.04314.58
5.3.130.4000.03714.43
5.3.120.3830.03714.62
5.3.110.4730.04714.56
5.3.100.4570.03714.11
5.3.90.4230.03714.02
5.3.80.4400.03314.01
5.3.70.4530.04013.91
5.3.60.4670.03313.96
5.3.50.4470.03714.12
5.3.40.4200.04313.89
5.3.30.5170.03713.91
5.3.20.4230.03713.69
5.3.10.4430.03313.57
5.3.00.4370.03013.64
5.2.170.3670.02011.22
5.2.160.3170.03011.31
5.2.150.3370.02711.14
5.2.140.3930.02711.15
5.2.130.3270.03011.07
5.2.120.3030.02711.18
5.2.110.3400.02311.10
5.2.100.3530.03311.06
5.2.90.3930.02311.07
5.2.80.3770.03711.09
5.2.70.3370.02311.05
5.2.60.3800.02711.02
5.2.50.3600.03710.94
5.2.40.3000.03010.92
5.2.30.3230.02010.89
5.2.20.2970.02710.88
5.2.10.2830.03010.91
5.2.00.3200.02710.77
5.1.60.3170.0239.95
5.1.50.2700.02010.05
5.1.40.2530.0209.93
5.1.30.2670.02710.50
5.1.20.2670.03310.36
5.1.10.2930.02310.06
5.1.00.2670.02310.08
5.0.50.1430.0208.45
5.0.40.1730.0238.39
5.0.30.1630.0308.13
5.0.20.1770.0208.17
5.0.10.1300.0178.32
5.0.00.1570.0278.22
4.4.90.1870.0136.30
4.4.80.1400.0176.30
4.4.70.1430.0176.30
4.4.60.1670.0176.30
4.4.50.1700.0176.30
4.4.40.1630.0206.30
4.4.30.1630.0176.30
4.4.20.1470.0176.30
4.4.10.1500.0176.30
4.4.00.1730.0276.30
4.3.110.1530.0176.30
4.3.100.1770.0176.30
4.3.90.1670.0136.30
4.3.80.1570.0306.30
4.3.70.1800.0136.30
4.3.60.1670.0136.30
4.3.50.1670.0136.30
4.3.40.1870.0276.30
4.3.30.1000.0236.30
4.3.20.1000.0236.30
4.3.10.0970.0176.30
4.3.00.1130.0176.30

preferences:
36.38 ms | 401 KiB | 5 Q