3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class WalletBase { private $private_money; function __construct($money) { $this->private_money = $money; } function getMoney() { return $this->private_money; } } class Wallet extends WalletBase { protected $private_money; function setMoney($money) { $this->private_money = $money; } } $wallet = new Wallet(12345); var_dump($wallet->getMoney()); $wallet->setMoney(67890); var_dump($wallet->getMoney());

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.0090.00618.34
8.3.50.0070.01222.03
8.3.40.0120.00318.67
8.3.30.0150.00018.95
8.3.20.0080.00020.18
8.3.10.0000.00821.92
8.3.00.0060.00322.37
8.2.180.0070.01116.60
8.2.170.0110.00422.96
8.2.160.0120.00820.52
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0080.00019.24
8.2.110.0070.00322.33
8.2.100.0060.00619.45
8.2.90.0060.00319.21
8.2.80.0060.00319.63
8.2.70.0000.00817.36
8.2.60.0030.00617.93
8.2.50.0000.00818.07
8.2.40.0080.00017.97
8.2.30.0070.00017.94
8.2.20.0040.00417.52
8.2.10.0000.00817.51
8.2.00.0000.00817.46
8.1.280.0070.00725.92
8.1.270.0080.00023.84
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00023.91
8.1.230.0080.00319.25
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0060.00317.23
8.1.190.0000.00817.51
8.1.180.0000.00818.10
8.1.170.0000.00818.72
8.1.160.0040.00421.92
8.1.150.0030.00618.57
8.1.140.0000.00717.30
8.1.130.0070.00017.82
8.1.120.0040.00417.41
8.1.110.0000.00817.31
8.1.100.0030.00517.45
8.1.90.0000.00717.39
8.1.80.0030.00317.43
8.1.70.0050.00217.30
8.1.60.0080.00017.52
8.1.50.0020.00517.43
8.1.40.0040.00417.50
8.1.30.0090.00017.62
8.1.20.0000.00817.64
8.1.10.0000.00917.55
8.1.00.0000.00717.30
8.0.300.0050.00318.77
8.0.290.0000.00817.18
8.0.280.0070.00018.37
8.0.270.0000.00817.13
8.0.260.0030.00316.67
8.0.250.0000.00716.80
8.0.240.0000.00716.89
8.0.230.0000.00716.93
8.0.220.0070.00016.88
8.0.210.0040.00416.74
8.0.200.0000.00816.78
8.0.190.0050.00216.80
8.0.180.0050.00216.75
8.0.170.0080.00016.84
8.0.160.0040.00416.71
8.0.150.0030.00316.79
8.0.140.0000.00816.62
8.0.130.0060.00013.27
8.0.120.0000.00816.71
8.0.110.0030.00516.79
8.0.100.0000.00716.61
8.0.90.0000.00716.88
8.0.80.0090.01216.82
8.0.70.0020.00516.80
8.0.60.0040.00416.63
8.0.50.0040.00416.71
8.0.30.0090.01117.14
8.0.20.0160.00417.40
8.0.10.0080.00016.84
8.0.00.0090.00916.79
7.4.330.0060.00015.08
7.4.320.0080.00016.41
7.4.300.0030.00316.49
7.4.290.0000.00716.57
7.4.280.0040.00416.50
7.4.270.0070.00016.51
7.4.260.0030.00316.63
7.4.250.0040.00316.39
7.4.240.0030.00516.48
7.4.230.0000.00716.34
7.4.220.0070.01016.63
7.4.210.0060.00716.51
7.4.200.0000.00716.58
7.4.190.0000.00716.70
7.4.160.0050.01016.38
7.4.150.0090.00917.40
7.4.140.0090.00817.86
7.4.130.0160.00516.35
7.4.120.0070.01216.37
7.4.110.0140.00316.51
7.4.100.0030.01416.53
7.4.90.0100.00716.34
7.4.80.0140.00319.39
7.4.70.0080.00816.53
7.4.60.0100.00716.48
7.4.50.0040.00416.43
7.4.40.0100.00322.77
7.4.30.0090.01216.45
7.4.00.0070.01014.55
7.3.330.0000.00513.18
7.3.320.0000.00513.05
7.3.310.0040.00416.34
7.3.300.0070.00016.24
7.3.290.0080.00816.20
7.3.280.0090.00916.25
7.3.270.0070.01117.40
7.3.260.0140.00316.22
7.3.250.0080.01016.23
7.3.240.0090.00616.50
7.3.230.0030.01716.39
7.3.210.0160.00716.50
7.3.200.0070.01019.39
7.3.190.0060.01216.43
7.3.180.0060.01016.28
7.3.170.0050.01116.28
7.3.160.0080.00816.45
7.3.120.0120.00314.88
7.2.330.0070.01016.69
7.2.320.0090.01316.75
7.2.310.0030.01316.75
7.2.300.0130.00316.38
7.2.290.0150.00616.80
7.2.60.0090.00616.53
7.2.50.0040.00816.68
7.1.200.0030.00715.90
7.1.70.0000.00716.94
7.1.60.0160.00619.82
7.1.50.0070.01416.86
7.1.00.0000.08022.30
7.0.200.0070.00314.89
7.0.140.0000.07722.09
7.0.60.0030.08320.01
7.0.50.0100.03317.85
7.0.40.0130.06720.27
7.0.30.0170.04320.31
7.0.20.0270.07020.19
7.0.10.0400.07320.10
7.0.00.0100.03320.22
5.6.280.0030.07720.87
5.6.210.0070.08020.54
5.6.200.0100.06718.12
5.6.190.0070.05720.42
5.6.180.3930.04320.57
5.6.170.0300.07320.47
5.6.160.0030.04020.46
5.6.150.0030.07318.14
5.6.140.0000.04318.18
5.6.130.0030.08718.17
5.6.120.0170.04721.04
5.6.110.0100.07321.14
5.6.100.0130.07721.12
5.6.90.0130.07021.02
5.6.80.0070.06720.44
5.6.70.4130.04020.53
5.5.350.0000.08320.39
5.5.340.0030.08717.92
5.5.330.0000.04320.35
5.5.320.0230.07320.24
5.5.310.0170.06320.19
5.5.300.0100.07317.93
5.5.290.0100.07718.08
5.5.280.0130.08020.75
5.5.270.0270.03320.68
5.5.260.0170.06020.65
5.5.250.0000.04320.62
5.5.240.0130.06720.36
5.4.450.0070.05319.64
5.4.440.0900.03319.48
5.4.430.0230.04719.63
5.4.420.0170.03019.41
5.4.410.0170.04718.95
5.4.400.0030.06018.84
5.4.390.0100.05318.53
5.4.380.0270.05318.80
5.4.370.0230.04718.74
5.4.360.0230.04318.78
5.4.350.0170.05718.80
5.4.340.0130.05718.79
5.4.320.0050.03812.50
5.4.310.0050.04012.50
5.4.300.0120.03112.51
5.4.290.0110.03812.50
5.4.280.0130.04412.39
5.4.270.0070.04712.37
5.4.260.0080.03612.36
5.4.250.0050.03912.37
5.4.240.0060.04012.36
5.4.230.0100.03512.36
5.4.220.0080.03312.36
5.4.210.0060.04212.36
5.4.200.0060.03912.36
5.4.190.0090.03212.36
5.4.180.0070.03512.35
5.4.170.0070.04112.36
5.4.160.0060.03512.36
5.4.150.0070.03412.36
5.4.140.0040.03812.04
5.4.130.0060.03512.02
5.4.120.0040.03711.99
5.4.110.0020.03911.98
5.4.100.0040.03611.98
5.4.90.0060.03611.98
5.4.80.0060.03611.98
5.4.70.0030.04011.98
5.4.60.0070.03811.98
5.4.50.0060.03911.98
5.4.40.0030.03811.96
5.4.30.0060.03611.96
5.4.20.0090.03311.96
5.4.10.0040.03711.96
5.4.00.0070.03411.45
5.3.290.0060.04112.80
5.3.280.0050.04012.71
5.3.270.0030.04212.73
5.3.260.0050.04012.71
5.3.250.0120.04212.72
5.3.240.0130.03712.72
5.3.230.0070.03612.71
5.3.220.0060.03712.68
5.3.210.0070.03912.68
5.3.200.0060.04012.68
5.3.190.0090.03512.68
5.3.180.0060.03612.68
5.3.170.0090.03412.66
5.3.160.0080.04712.67
5.3.150.0040.04112.68
5.3.140.0030.03912.66
5.3.130.0070.03712.65
5.3.120.0070.03812.66
5.3.110.0070.04112.66
5.3.100.0080.03512.12
5.3.90.0060.03612.08
5.3.80.0060.03612.07
5.3.70.0040.03812.08
5.3.60.0070.03512.07
5.3.50.0060.04412.00
5.3.40.0040.03712.00
5.3.30.0050.03511.96
5.3.20.0050.03511.74
5.3.10.0060.03411.71
5.3.00.0020.03911.69
5.2.170.0030.0349.18
5.2.160.0070.0299.18
5.2.150.0080.0399.19
5.2.140.0060.0419.18
5.2.130.0060.0329.14
5.2.120.0050.0289.14
5.2.110.0040.0299.15
5.2.100.0000.0339.15
5.2.90.0050.0309.15
5.2.80.0020.0329.14
5.2.70.0060.0299.14
5.2.60.0030.0319.10
5.2.50.0040.0329.07
5.2.40.0060.0299.05
5.2.30.0070.0309.02
5.2.20.0020.0329.02
5.2.10.0070.0278.93
5.2.00.0060.0298.78
5.1.60.0030.0268.06
5.1.50.0030.0268.06
5.1.40.0050.0288.05
5.1.30.0050.0268.40
5.1.20.0020.0298.42
5.1.10.0080.0238.14
5.1.00.0050.0268.14
5.0.50.0010.0236.62
5.0.40.0050.0176.48
5.0.30.0040.0316.29
5.0.20.0070.0226.26
5.0.10.0030.0226.24
5.0.00.0030.0306.23
4.4.90.0020.0164.78
4.4.80.0020.0164.75
4.4.70.0040.0224.75
4.4.60.0020.0174.76
4.4.50.0020.0174.77
4.4.40.0040.0244.71
4.4.30.0020.0174.76
4.4.20.0040.0154.85
4.4.10.0020.0184.85
4.4.00.0020.0274.76
4.3.110.0020.0244.67
4.3.100.0030.0164.66
4.3.90.0040.0194.63
4.3.80.0030.0244.58
4.3.70.0050.0194.63
4.3.60.0030.0154.63
4.3.50.0000.0184.63
4.3.40.0020.0254.54
4.3.30.0020.0163.27
4.3.20.0020.0163.25
4.3.10.0010.0173.21
4.3.00.0000.02013.28

preferences:
42.82 ms | 401 KiB | 5 Q