3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected $foo; public function getFoo() { return $this->foo(); } } class Bar extends Foo { public function __construct($foo) { $this->foo = $foo; } } $foo = new Foo(new stdClass()); $$bar = new Bar(new stdClass()); var_dump($foo, $bar);

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.0000.01418.63
8.3.30.0030.01018.96
8.3.20.0070.00020.16
8.3.10.0000.00822.09
8.3.00.0040.00422.37
8.2.170.0140.00022.96
8.2.160.0170.00320.81
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00626.16
8.2.120.0040.00419.48
8.2.110.0100.00022.25
8.2.100.0060.00619.39
8.2.90.0000.00819.03
8.2.80.0000.00817.97
8.2.70.0090.00017.63
8.2.60.0030.00618.05
8.2.50.0040.00418.07
8.2.40.0000.00818.34
8.2.30.0030.00618.10
8.2.20.0000.00817.72
8.2.10.0000.00817.70
8.2.00.0040.00819.45
8.1.270.0050.00322.06
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0080.00023.83
8.1.230.0060.00619.16
8.1.220.0040.00417.78
8.1.210.0060.00318.77
8.1.200.0040.00717.48
8.1.190.0000.00917.63
8.1.180.0030.00618.79
8.1.170.0050.00518.50
8.1.160.0040.00421.96
8.1.150.0000.00718.71
8.1.140.0000.00717.45
8.1.130.0040.00417.76
8.1.120.0000.00717.39
8.1.110.0000.00817.35
8.1.100.0070.00017.46
8.1.90.0050.00217.36
8.1.80.0030.00617.47
8.1.70.0030.00317.49
8.1.60.0050.00317.66
8.1.50.0050.00317.46
8.1.40.0000.00817.57
8.1.30.0070.00017.64
8.1.20.0050.00317.65
8.1.10.0000.00817.56
8.1.00.0000.00717.36
8.0.300.0070.00018.77
8.0.290.0000.00816.80
8.0.280.0040.00418.51
8.0.270.0000.00717.22
8.0.260.0030.00316.89
8.0.250.0050.00217.02
8.0.240.0030.00617.03
8.0.230.0070.00017.08
8.0.220.0030.00316.97
8.0.210.0030.00316.88
8.0.200.0030.00317.01
8.0.190.0040.00417.08
8.0.180.0030.00316.90
8.0.170.0030.00516.97
8.0.160.0000.00716.82
8.0.150.0040.00216.98
8.0.140.0030.00316.97
8.0.130.0000.00513.39
8.0.120.0030.00617.00
8.0.110.0000.00916.95
8.0.100.0070.00016.77
8.0.90.0000.00717.02
8.0.80.0120.00617.03
8.0.70.0050.00316.86
8.0.60.0000.00716.86
8.0.50.0040.00416.99
8.0.30.0110.01017.09
8.0.20.0120.00617.40
8.0.10.0070.00017.05
8.0.00.0120.00616.74
7.4.330.0050.00015.15
7.4.320.0030.00316.63
7.4.300.0030.00316.64
7.4.290.0030.00316.38
7.4.280.0040.00416.53
7.4.270.0020.00516.52
7.4.260.0000.00816.63
7.4.250.0040.00416.47
7.4.240.0010.00616.53
7.4.230.0030.00316.72
7.4.220.0060.00916.66
7.4.210.0060.00716.60
7.4.200.0040.00416.60
7.4.190.0050.00316.57
7.4.160.0130.00316.73
7.4.150.0120.00617.40
7.4.140.0230.01117.86
7.4.130.0070.01316.51
7.4.120.0080.00916.62
7.4.110.0090.00616.67
7.4.100.0040.01816.64
7.4.90.0140.00416.33
7.4.80.0100.00719.39
7.4.70.0030.02016.26
7.4.60.0090.00616.65
7.4.50.0000.00716.32
7.4.40.0090.00622.77
7.4.30.0100.00616.56
7.4.00.0040.01115.20
7.3.330.0020.00213.37
7.3.320.0020.00213.32
7.3.310.0000.00816.39
7.3.300.0030.00316.33
7.3.290.0040.01116.34
7.3.280.0070.00816.36
7.3.270.0140.00317.40
7.3.260.0140.01016.53
7.3.250.0090.01016.33
7.3.240.0150.00416.18
7.3.230.0120.00616.39
7.3.210.0000.01816.51
7.3.200.0110.01219.39
7.3.190.0130.01016.37
7.3.180.0070.01016.49
7.3.170.0050.01416.27
7.3.160.0150.00016.24
7.3.120.0030.01014.77
7.3.10.0040.01116.68
7.3.00.0090.00616.70
7.2.330.0130.00716.63
7.2.320.0100.01016.65
7.2.310.0030.01616.74
7.2.300.0040.01316.40
7.2.290.0090.00816.46
7.2.130.0040.00716.48
7.2.120.0030.00916.74
7.2.110.0060.00316.82
7.2.100.0000.01316.61
7.2.90.0070.00817.08
7.2.80.0000.01017.02
7.2.70.0100.00017.08
7.2.60.0120.00516.79
7.2.50.0070.00316.80
7.2.40.0090.00316.68
7.2.30.0090.00016.86
7.2.20.0030.00916.86
7.2.10.0080.00316.89
7.2.00.0020.01118.02
7.1.250.0000.01415.63
7.1.200.0000.01315.85
7.1.100.0090.00617.98
7.1.70.0000.00917.19
7.1.60.0030.01017.02
7.1.50.0100.01416.70
7.1.00.0100.08322.33
7.0.200.0050.00216.51
7.0.140.0030.07021.95
7.0.60.0270.08019.92
7.0.50.0070.07717.89
7.0.40.0070.06720.02
7.0.30.0430.07020.16
7.0.20.0400.07320.07
7.0.10.0070.08720.19
7.0.00.0100.03720.29
5.6.280.0070.07020.93
5.6.210.0030.07720.73
5.6.200.0100.03718.30
5.6.190.0070.05320.53
5.6.180.0170.04320.48
5.6.170.0330.08020.58
5.6.160.0100.08020.46
5.6.150.0030.07718.22
5.6.140.0030.07018.21
5.6.130.0130.05718.19
5.6.120.0100.08020.97
5.6.110.0130.07721.03
5.6.100.0130.07721.01
5.6.90.0130.06320.98
5.6.80.0130.03020.51
5.5.350.0170.05320.42
5.5.340.0130.07317.95
5.5.330.0100.06320.43
5.5.320.0430.04720.38
5.5.310.0200.03720.37
5.5.300.0070.05318.07
5.5.290.0130.08018.05
5.5.280.0100.08020.78
5.5.270.0030.04320.90
5.5.260.0070.08720.65
5.5.250.0100.08020.50
5.5.240.0200.07320.26
5.4.450.4270.03719.24
5.4.440.0070.03719.48
5.4.430.1700.07019.48
5.4.420.4830.04719.48
5.4.410.3900.03719.41
5.4.400.0000.07319.02
5.4.390.3370.03718.91
5.4.380.3930.04718.96
5.4.370.3670.04318.95
5.4.360.3800.03719.16
5.4.350.3830.02719.02
5.4.340.4700.04719.16
5.4.320.3870.04319.21
5.4.310.4070.03018.91
5.4.300.3500.04319.11
5.4.290.3830.04019.06
5.4.280.4070.03319.11
5.4.270.4670.03019.11
5.4.260.4630.03318.95
5.4.250.4600.03018.89
5.4.240.4070.03719.21
5.4.230.3570.03718.95
5.4.220.4600.03719.20
5.4.210.3500.03719.11
5.4.200.4530.03319.11
5.4.190.3970.04719.14
5.4.180.3900.03318.88
5.4.170.3570.04018.88
5.4.160.3670.03019.18
5.4.150.3600.04019.08
5.4.140.3530.04016.31
5.4.130.3500.03716.50
5.4.120.3000.03316.48
5.4.110.3530.03716.52
5.4.100.3500.03016.43
5.4.90.3830.03716.31
5.4.80.4170.03316.63
5.4.70.4530.03716.63
5.4.60.4600.03316.50
5.4.50.5570.03016.43
5.4.40.4230.03016.57
5.4.30.4500.04016.55
5.4.20.4070.03316.49
5.4.10.3870.03316.44
5.4.00.3770.04015.82
5.3.290.3900.04014.66
5.3.280.4430.03714.61
5.3.270.4200.04714.64
5.3.260.3730.03714.65
5.3.250.3370.03714.76
5.3.240.3570.03714.66
5.3.230.4630.03014.65
5.3.220.3000.04314.63
5.3.210.3730.03314.72
5.3.200.3570.03314.57
5.3.190.3730.04314.56
5.3.180.3900.03714.63
5.3.170.4500.03314.60
5.3.160.4130.03714.57
5.3.150.4600.04014.56
5.3.140.4530.03314.70
5.3.130.4430.03714.44
5.3.120.4430.03714.58
5.3.110.3900.03714.60
5.3.100.4070.03714.09
5.3.90.3800.04014.05
5.3.80.3670.03714.08
5.3.70.3870.04014.06
5.3.60.3900.03714.03
5.3.50.3900.04013.88
5.3.40.3900.04313.88
5.3.30.3600.03713.80
5.3.20.3600.03013.77
5.3.10.3870.03013.66
5.3.00.3700.03713.79
5.2.170.3200.03311.20
5.2.160.3300.02311.20
5.2.150.3230.03311.16
5.2.140.3130.03011.22
5.2.130.3270.03311.27
5.2.120.3370.03311.19
5.2.110.2870.02711.07
5.2.100.3200.03011.17
5.2.90.3600.03711.26
5.2.80.3500.02711.02
5.2.70.3900.04311.18
5.2.60.3330.02011.00
5.2.50.2930.03011.18
5.2.40.2600.03011.07
5.2.30.2600.02710.93
5.2.20.2700.02310.96
5.2.10.2500.03310.86
5.2.00.2070.03010.79
5.1.60.0070.0509.95
5.1.50.0030.0579.97
5.1.40.0030.0509.96
5.1.30.0030.03710.30
5.1.20.2570.02710.52
5.1.10.2600.02710.10
5.1.00.2430.02710.14
5.0.50.1600.0238.47
5.0.40.1330.0178.48
5.0.30.1570.0338.14
5.0.20.1170.0278.27
5.0.10.1500.0208.14
5.0.00.1370.0378.14
4.4.90.1430.0206.19
4.4.80.1430.0176.19
4.4.70.1330.0176.19
4.4.60.1470.0236.19
4.4.50.1430.0176.19
4.4.40.0070.0436.19
4.4.30.0000.0376.19
4.4.20.1430.0206.19
4.4.10.1530.0206.19
4.4.00.1500.0206.19
4.3.110.1570.0206.19
4.3.100.1570.0176.19
4.3.90.0800.0136.19
4.3.80.1370.0276.19
4.3.70.1630.0136.19
4.3.60.1570.0136.19
4.3.50.1400.0176.19
4.3.40.1200.0206.19
4.3.30.0800.0236.19
4.3.20.0730.0176.19
4.3.10.0800.0206.19
4.3.00.0970.0206.19

preferences:
41.44 ms | 400 KiB | 5 Q