3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $bar; public function setBar($bar) { $this->bar = $bar; } public function getBar() { return $this->bar; } public function setName($name) { $f->getBar()->name_from_get = 'Baz'; $f->bar->name_directly = 'Baz'; } } $f = new Foo(); $f->setBar(new \stdClass()); $f->setName('Baz'); var_dump($f->getBar());

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.00417.00
8.3.50.0110.00318.26
8.3.40.0120.00318.79
8.3.30.0160.00619.02
8.3.20.0000.00721.85
8.3.10.0050.00321.60
8.3.00.0080.00019.68
8.2.180.0040.01118.51
8.2.170.0110.00422.96
8.2.160.0130.00320.32
8.2.150.0070.00024.18
8.2.140.0000.00924.66
8.2.130.0040.00420.45
8.2.120.0020.00526.35
8.2.110.0090.00022.23
8.2.100.0040.00817.72
8.2.90.0000.00817.62
8.2.80.0060.00317.97
8.2.70.0050.00317.80
8.2.60.0050.00318.01
8.2.50.0040.00418.10
8.2.40.0030.00622.14
8.2.30.0040.00419.26
8.2.20.0000.00717.88
8.2.10.0040.00417.88
8.2.00.0040.00417.92
8.1.280.0180.00025.92
8.1.270.0080.00018.88
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00322.48
8.1.230.0060.00618.98
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0090.00017.35
8.1.190.0000.00817.11
8.1.180.0080.00018.10
8.1.170.0040.00421.96
8.1.160.0000.00718.83
8.1.150.0070.00020.27
8.1.140.0040.00419.53
8.1.130.0000.00718.69
8.1.120.0080.00017.47
8.1.110.0020.00517.27
8.1.100.0040.00417.39
8.1.90.0080.00017.41
8.1.80.0000.00817.31
8.1.70.0000.00717.43
8.1.60.0000.00917.61
8.1.50.0040.00417.54
8.1.40.0040.00417.47
8.1.30.0030.00517.50
8.1.20.0040.00417.70
8.1.10.0040.00417.60
8.1.00.0000.00817.41
8.0.300.0080.00018.77
8.0.290.0040.00416.75
8.0.280.0030.00318.47
8.0.270.0000.00817.14
8.0.260.0080.00018.77
8.0.250.0000.00816.95
8.0.240.0080.00016.80
8.0.230.0040.00416.98
8.0.220.0030.00516.88
8.0.210.0000.00816.93
8.0.200.0030.00316.98
8.0.190.0040.00416.97
8.0.180.0040.00416.98
8.0.170.0030.00516.83
8.0.160.0000.00716.85
8.0.150.0000.00716.73
8.0.140.0070.00016.84
8.0.130.0000.00713.29
8.0.120.0040.00416.87
8.0.110.0070.00317.01
8.0.100.0040.00416.75
8.0.90.0040.00416.96
8.0.80.0140.00016.96
8.0.70.0040.00416.93
8.0.60.0000.00716.92
8.0.50.0050.00216.70
8.0.30.0070.01017.24
8.0.20.0140.00717.40
8.0.10.0070.00017.05
8.0.00.0070.01116.76
7.4.330.0050.00015.55
7.4.320.0000.00716.35
7.4.300.0000.00716.61
7.4.290.0000.00816.59
7.4.280.0040.00416.52
7.4.270.0050.00316.52
7.4.260.0000.00716.49
7.4.250.0000.00716.47
7.4.240.0040.00416.53
7.4.230.0000.00716.50
7.4.220.0040.01316.56
7.4.210.0060.00916.57
7.4.200.0030.00316.40
7.4.160.0110.00616.51
7.4.150.0130.00717.40
7.4.140.0080.01017.86
7.4.130.0100.00716.46
7.4.120.0130.01016.49
7.4.110.0100.00616.69
7.4.100.0090.00916.52
7.4.90.0060.01316.29
7.4.80.0070.01019.39
7.4.70.0110.00516.58
7.4.60.0100.00716.66
7.4.50.0070.01016.43
7.4.40.0060.01016.65
7.4.30.0140.00316.39
7.4.00.0070.00714.85
7.3.330.0000.00513.36
7.3.320.0000.00513.23
7.3.310.0030.00316.47
7.3.300.0070.00016.23
7.3.290.0120.00416.36
7.3.280.0080.01016.33
7.3.270.0100.00917.40
7.3.260.0110.01016.56
7.3.250.0080.00916.50
7.3.240.0060.01416.44
7.3.230.0070.01116.50
7.3.210.0130.00516.54
7.3.200.0110.01516.40
7.3.190.0100.00616.55
7.3.180.0120.00316.30
7.3.170.0070.01016.56
7.3.160.0130.00316.47
7.3.10.0100.00716.07
7.3.00.0000.01416.02
7.2.330.0060.01216.36
7.2.320.0060.01216.59
7.2.310.0080.01016.72
7.2.300.0050.01316.69
7.2.290.0100.00716.70
7.2.130.0060.00916.38
7.2.120.0040.00416.77
7.2.110.0060.00616.81
7.2.100.0000.00916.63
7.2.90.0100.00316.89
7.2.80.0030.01016.72
7.2.70.0050.00516.52
7.2.60.0050.00916.69
7.2.50.0110.00016.88
7.2.40.0100.00016.62
7.2.30.0040.00816.63
7.2.20.0000.01116.71
7.2.10.0040.01116.73
7.2.00.0050.00818.17
7.1.250.0040.00815.76
7.1.200.0080.00815.56
7.1.70.0070.00316.99
7.1.60.0270.01032.92
7.1.50.1570.02032.95
7.1.40.3070.01332.30
7.1.30.0200.02332.44
7.1.20.0500.01332.45
7.1.10.1570.01014.50
7.1.00.0030.01014.68
7.0.200.0100.01015.02
7.0.190.0100.01315.04
7.0.180.1630.02014.51
7.0.170.0370.00714.13
7.0.160.0030.01314.10
7.0.150.0130.00714.51
7.0.140.0030.01014.65
7.0.130.2670.01314.58
7.0.120.2230.00714.79
7.0.110.0070.00714.39
7.0.100.2300.01014.36
7.0.90.0070.01314.53
7.0.80.0100.01014.41
7.0.70.0200.01014.59
7.0.60.0100.00714.21
7.0.50.0000.01314.57
7.0.40.0170.01714.46
7.0.30.1500.01014.38
7.0.20.0000.01314.52
7.0.10.0700.01014.40
7.0.00.0000.01314.50

preferences:
47.47 ms | 400 KiB | 5 Q