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 { private $private_money; function getMoney() { return '$' . parent::getMoney(); } function getMyMoney() { return '$' . $this->private_money; } function setMoney($money) { $this->private_money = $money; } } $wallet = new Wallet(12345); var_dump($wallet->getMoney()); var_dump($wallet->getMyMoney()); $wallet->setMoney(67890); var_dump($wallet->getMoney()); var_dump($wallet->getMyMoney());

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.40.0070.01118.79
8.3.30.0110.00719.10
8.3.20.0000.00720.21
8.3.10.0060.00322.09
8.3.00.0040.00422.34
8.2.170.0070.00722.96
8.2.160.0140.00720.96
8.2.150.0060.00324.18
8.2.140.0030.00524.66
8.2.130.0000.00726.16
8.2.120.0040.00419.23
8.2.110.0000.00922.20
8.2.100.0000.01119.64
8.2.90.0040.00418.96
8.2.80.0040.00419.53
8.2.70.0080.00017.50
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0000.00718.22
8.2.30.0040.00417.94
8.2.20.0040.00417.69
8.2.10.0070.00017.79
8.2.00.0040.00417.56
8.1.270.0080.00023.70
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00323.85
8.1.230.0120.00019.18
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0090.00017.25
8.1.190.0000.00817.53
8.1.180.0000.00818.10
8.1.170.0030.00618.53
8.1.160.0080.00021.99
8.1.150.0000.00818.63
8.1.140.0050.00317.41
8.1.130.0030.00617.47
8.1.120.0050.00217.43
8.1.110.0050.00317.29
8.1.100.0050.00217.29
8.1.90.0040.00417.30
8.1.80.0040.00317.27
8.1.70.0040.00417.39
8.1.60.0040.00417.54
8.1.50.0060.00317.54
8.1.40.0000.00717.40
8.1.30.0030.00617.54
8.1.20.0000.00917.63
8.1.10.0050.00517.59
8.1.00.0000.00817.38
8.0.300.0040.00418.77
8.0.290.0070.00017.28
8.0.280.0030.00318.36
8.0.270.0040.00417.25
8.0.260.0000.00816.89
8.0.250.0000.00716.92
8.0.240.0050.00216.89
8.0.230.0000.00716.91
8.0.220.0030.00316.86
8.0.210.0070.00016.91
8.0.200.0030.00316.89
8.0.190.0000.00817.02
8.0.180.0040.00416.94
8.0.170.0000.00816.90
8.0.160.0040.00417.00
8.0.150.0030.00316.85
8.0.140.0040.00416.79
8.0.130.0050.00313.37
8.0.120.0000.00716.74
8.0.110.0080.00016.84
8.0.100.0040.00416.62
8.0.90.0000.00816.95
8.0.80.0060.01316.75
8.0.70.0030.00516.90
8.0.60.0000.00716.66
8.0.50.0000.00716.68
8.0.30.0120.00617.12
8.0.20.0120.00717.40
8.0.10.0040.00416.95
8.0.00.0100.01016.70
7.4.330.0050.00015.09
7.4.320.0030.00316.43
7.4.300.0000.00616.58
7.4.290.0040.00416.43
7.4.280.0040.00416.51
7.4.270.0080.00016.65
7.4.260.0040.00416.59
7.4.250.0090.00016.45
7.4.240.0010.00616.62
7.4.230.0000.00716.68
7.4.220.0130.00616.41
7.4.210.0110.00616.59
7.4.200.0050.00316.51
7.4.190.0000.00716.77
7.4.160.0130.01016.61
7.4.150.0170.00317.40
7.4.140.0110.00917.86
7.4.130.0080.00916.35
7.4.120.0090.00816.57
7.4.110.0040.01916.63
7.4.100.0090.00916.68
7.4.90.0180.00616.52
7.4.80.0140.00516.43
7.4.70.0060.01616.52
7.4.60.0120.00316.40
7.4.50.0040.00416.39
7.4.40.0000.01222.77
7.4.30.0000.01716.52
7.4.00.0090.00914.93
7.3.330.0000.00613.17
7.3.320.0050.00013.25
7.3.310.0030.00316.35
7.3.300.0070.00016.26
7.3.290.0070.00716.32
7.3.280.0080.01016.31
7.3.270.0060.01117.40
7.3.260.0130.01016.26
7.3.250.0130.00516.41
7.3.240.0030.01316.36
7.3.230.0090.00916.39
7.3.210.0110.00616.23
7.3.200.0090.01019.39
7.3.190.0080.01416.35
7.3.180.0090.00916.37
7.3.170.0130.00316.58
7.3.160.0100.00716.25
7.3.120.0120.00414.70
7.3.110.0040.01214.94
7.3.100.0090.00614.77
7.3.90.0100.00314.78
7.3.80.0070.00715.10
7.3.70.0070.00714.72
7.3.60.0000.01014.89
7.3.50.0070.00714.77
7.3.40.0040.01114.52
7.3.30.0060.00314.71
7.3.20.0070.00416.39
7.3.10.0080.00916.27
7.3.00.0120.00516.29
7.2.330.0080.00816.71
7.2.320.0090.01216.43
7.2.310.0070.01416.75
7.2.300.0070.00816.79
7.2.290.0090.01216.50
7.2.240.0030.01314.69
7.2.230.0060.00614.96
7.2.220.0000.01714.91
7.2.210.0060.01014.69
7.2.200.0000.01514.92
7.2.190.0040.01214.70
7.2.180.0090.00614.95
7.2.170.0090.00615.02
7.2.160.0100.00314.75
7.2.150.0130.00316.77
7.2.140.0060.00316.67
7.2.130.0040.01216.71
7.2.120.0110.00716.40
7.2.110.0050.01216.66
7.2.100.0050.01016.83
7.2.90.0090.00916.83
7.2.80.0030.01416.85
7.2.70.0140.00517.02
7.2.60.0100.00816.73
7.2.50.0070.00816.80
7.2.40.0090.01316.76
7.2.30.0170.00516.69
7.2.20.0160.00516.53
7.2.10.0080.01116.71
7.2.00.0120.01116.73
7.1.330.0030.01015.66
7.1.320.0060.00615.54
7.1.310.0060.00915.68
7.1.300.0070.00415.77
7.1.290.0030.00615.56
7.1.280.0070.01015.73
7.1.270.0130.00315.73
7.1.260.0000.01415.73
7.1.250.0050.01115.65
7.1.200.0000.01115.68
7.1.70.0000.00917.04
7.1.60.0140.01019.82
7.1.50.0090.01216.86
7.1.00.0030.07722.31
7.0.200.0070.00314.70
7.0.140.0030.07321.96
7.0.60.0030.06320.04
7.0.50.0100.07717.90
7.0.40.0000.05020.30
7.0.30.0300.07720.07
7.0.20.0370.07320.19
7.0.10.0130.05720.23
7.0.00.0070.04020.18
5.6.280.0070.07720.90
5.6.210.0030.04720.77
5.6.200.0030.04018.23
5.6.190.0070.04320.62
5.6.180.4030.04720.41
5.6.170.0300.07020.54
5.6.160.0030.07720.51
5.6.150.0030.08718.28
5.6.140.0070.04318.27
5.6.130.0100.06718.12
5.6.120.0000.04721.13
5.6.110.0070.09020.99
5.6.100.0100.08021.11
5.6.90.0100.08021.00
5.6.80.0000.05020.38
5.6.70.0270.04320.35
5.5.350.0030.07320.50
5.5.340.0130.07318.04
5.5.330.0170.08020.37
5.5.320.0200.04320.29
5.5.310.0300.07320.51
5.5.300.0030.03718.02
5.5.290.0070.04018.04
5.5.280.0100.05720.81
5.5.270.0000.05020.88
5.5.260.0030.04020.80
5.5.250.0170.06320.55
5.5.240.0030.06720.16
5.4.450.2030.04019.42
5.4.440.2570.04319.57
5.4.430.2130.04019.19
5.4.420.2230.03719.54
5.4.410.2030.03719.36
5.4.400.2100.03319.09
5.4.390.2100.03318.87
5.4.380.2200.02019.04
5.4.370.2370.04719.14
5.4.360.2400.03719.25
5.4.350.2200.03318.87
5.4.340.2200.04019.15
5.4.320.2000.03319.06
5.4.310.1970.04319.08
5.4.300.2270.03318.82
5.4.290.2330.03318.95
5.4.280.2200.03719.17
5.4.270.1070.03719.13
5.4.260.0100.06018.88
5.4.250.0000.04019.09
5.4.240.1870.03319.24
5.4.230.2030.03019.15
5.4.220.2330.05018.96
5.4.210.2100.02719.14
5.4.200.2300.03719.13
5.4.190.2000.04019.21
5.4.180.2300.04019.30
5.4.170.2000.04019.21
5.4.160.2230.03318.86
5.4.150.2000.03719.06
5.4.140.0000.04716.38
5.4.130.0070.03316.66
5.4.120.0930.03716.44
5.4.110.1930.03316.39
5.4.100.1800.04016.61
5.4.90.2170.03316.44
5.4.80.1900.04016.49
5.4.70.1800.03016.49
5.4.60.2200.04016.49
5.4.50.1930.04016.16
5.4.40.2030.03016.16
5.4.30.1930.03716.51
5.4.20.1630.03716.55
5.4.10.0030.03716.50
5.4.00.0030.03715.89
5.3.290.0870.03714.59
5.3.280.1600.04014.63
5.3.270.1670.03014.63
5.3.260.1400.03714.60
5.3.250.2130.05014.84
5.3.240.1870.04014.51
5.3.230.1830.03714.61
5.3.220.1970.03714.69
5.3.210.2170.03014.59
5.3.200.1900.03714.54
5.3.190.1930.03714.57
5.3.180.0770.04014.50
5.3.170.0000.04014.55
5.3.160.0030.04314.65
5.3.150.1400.03714.72
5.3.140.2000.03014.59
5.3.130.1970.04014.63
5.3.120.2000.03714.64
5.3.110.2030.03014.56
5.3.100.0630.04014.02
5.3.90.0070.06714.14
5.3.80.0030.03314.17
5.3.70.0400.07014.03
5.3.60.1970.03713.93
5.3.50.2300.04313.88
5.3.40.2070.03713.96
5.3.30.2300.04313.93
5.3.20.2100.03713.72
5.3.10.2030.03313.78
5.3.00.2000.03313.79
5.2.170.1600.03311.08
5.2.160.1870.03011.23
5.2.150.1730.03011.30
5.2.140.1800.02311.05
5.2.130.1770.02011.34
5.2.120.1970.04011.03
5.2.110.2030.03011.09
5.2.100.2030.03311.12
5.2.90.1800.03311.19
5.2.80.1900.03311.25
5.2.70.1900.03011.02
5.2.60.2100.02310.96
5.2.50.1900.03311.14
5.2.40.1630.03010.91
5.2.30.1300.03010.96
5.2.20.1370.02710.97
5.2.10.1630.02710.94
5.2.00.1630.02710.71
5.1.60.1470.03010.15
5.1.50.1570.0309.89
5.1.40.1670.02710.07
5.1.30.0900.03010.35
5.1.20.0030.05710.39
5.1.10.0030.03010.01
5.1.00.0070.05310.30
5.0.50.0030.0208.82
5.0.40.0470.0208.82
5.0.30.0630.0338.82
5.0.20.0630.0208.82
5.0.10.0730.0208.82
5.0.00.0770.0378.82
4.4.90.0730.0208.82
4.4.80.0730.0208.82
4.4.70.0730.0208.82
4.4.60.0700.0208.82
4.4.50.0770.0238.82
4.4.40.0800.0278.82
4.4.30.0670.0138.82
4.4.20.0770.0108.82
4.4.10.0830.0278.82
4.4.00.0770.0238.82
4.3.110.0830.0208.82
4.3.100.0900.0208.82
4.3.90.0870.0238.82
4.3.80.0030.0378.82
4.3.70.0000.0408.82
4.3.60.0030.0338.82
4.3.50.0030.0308.82
4.3.40.0000.0338.82
4.3.30.0030.0238.82
4.3.20.0000.0208.82
4.3.10.0000.0178.82
4.3.00.0070.0138.82

preferences:
39.79 ms | 400 KiB | 5 Q