3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $bar; public function getBar() { return $this->bar; } } class FooProxy extends Foo { public function getBar() { $this->init(); return parent::getBar(); } private function init() { \Closure::bind(function (Foo $foo, $value) { $foo->bar = $value; }, null, \get_parent_class($this))($this, 'bar42'); } } $foo = new FooProxy(); var_dump($foo->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.110.0060.00920.94
8.3.100.0060.00324.06
8.3.90.0070.00426.77
8.3.80.0040.00716.75
8.3.70.0120.00316.58
8.3.60.0120.00318.20
8.3.50.0120.00317.37
8.3.40.0110.01118.48
8.3.30.0070.01118.75
8.3.20.0040.00421.73
8.3.10.0090.00020.53
8.3.00.0000.00917.50
8.2.230.0090.00622.58
8.2.220.0080.00037.54
8.2.210.0080.00626.77
8.2.200.0030.00616.75
8.2.190.0140.00316.75
8.2.180.0170.00018.05
8.2.170.0140.00322.96
8.2.160.0100.00720.38
8.2.150.0090.00024.18
8.2.140.0060.00324.66
8.2.130.0000.00818.06
8.2.120.0050.00326.35
8.2.110.0030.00621.12
8.2.100.0080.00419.64
8.2.90.0000.00917.78
8.2.80.0080.00017.97
8.2.70.0000.00818.03
8.2.60.0000.00918.09
8.2.50.0030.00618.10
8.2.40.0060.00619.33
8.2.30.0000.00719.25
8.2.20.0040.00418.13
8.2.10.0080.00019.45
8.2.00.0060.00318.12
8.1.290.0030.00618.88
8.1.280.0120.00325.92
8.1.270.0000.00820.17
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.74
8.1.230.0070.00420.95
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0090.00017.48
8.1.190.0090.00017.23
8.1.180.0030.00618.10
8.1.170.0030.00618.65
8.1.160.0040.00418.89
8.1.150.0070.00018.91
8.1.140.0040.00418.89
8.1.130.0050.00221.97
8.1.120.0030.00717.48
8.1.110.0060.00317.36
8.1.100.0040.00417.43
8.1.90.0000.00817.45
8.1.80.0040.00417.46
8.1.70.0000.00717.31
8.1.60.0030.00617.61
8.1.50.0040.00417.57
8.1.40.0040.00417.47
8.1.30.0000.00717.62
8.1.20.0040.00417.69
8.1.10.0050.00217.48
8.1.00.0000.00817.46
8.0.300.0030.00519.72
8.0.290.0040.00416.63
8.0.280.0030.00318.43
8.0.270.0050.00216.83
8.0.260.0030.00318.38
8.0.250.0040.00416.89
8.0.240.0000.00716.84
8.0.230.0040.00416.86
8.0.220.0030.00316.80
8.0.210.0040.00416.86
8.0.200.0030.00316.95
8.0.190.0000.00816.89
8.0.180.0000.00816.99
8.0.170.0030.00616.95
8.0.160.0000.00816.93
8.0.150.0000.00816.88
8.0.140.0030.00316.94
8.0.130.0030.00313.41
8.0.120.0070.00016.84
8.0.110.0040.00416.93
8.0.100.0000.00716.83
8.0.90.0000.00716.93
8.0.80.0080.01116.99
8.0.70.0040.00416.83
8.0.60.0040.00416.97
8.0.50.0040.00417.04
8.0.30.0130.00617.14
8.0.20.0070.01116.91
8.0.10.0070.00017.15
8.0.00.0150.00316.71
7.4.330.0030.00315.55
7.4.320.0000.00716.51
7.4.300.0030.00316.52
7.4.290.0030.00616.61
7.4.280.0060.00316.41
7.4.270.0050.00316.59
7.4.260.0050.00316.59
7.4.250.0090.00016.48
7.4.240.0080.00016.61
7.4.230.0000.00716.36
7.4.220.0080.00016.36
7.4.210.0080.00916.67
7.4.200.0000.00716.71
7.4.160.0130.00416.53
7.4.140.0070.01017.86
7.4.130.0100.01316.56
7.4.120.0030.01516.50
7.4.110.0060.01316.44
7.4.100.0090.00916.58
7.4.90.0100.00716.48
7.4.80.0090.00819.39
7.4.70.0080.01116.76
7.4.60.0110.01116.36
7.4.50.0040.00816.65
7.4.40.0090.00816.57
7.4.00.0110.00415.19
7.3.330.0000.00513.41
7.3.320.0000.00513.27
7.3.310.0040.00416.33
7.3.300.0030.00316.38
7.3.290.0000.00816.19
7.3.280.0090.00916.25
7.3.260.0100.01016.42
7.3.240.0080.01316.38
7.3.230.0120.00616.26
7.3.210.0140.00416.20
7.3.200.0110.01116.49
7.3.190.0130.00716.32
7.3.180.0070.01016.29
7.3.170.0090.00916.38
7.3.160.0060.00916.59
7.3.20.5120.00314.57
7.3.10.2740.01314.48
7.3.00.4890.01314.43
7.2.330.0060.01116.75
7.2.320.0060.01216.65
7.2.310.0190.00416.66
7.2.300.0030.01416.62
7.2.290.0130.00316.71
7.2.150.3130.00314.96
7.2.140.1750.01014.64
7.2.130.6150.00014.90
7.2.120.3540.01014.73
7.2.110.1630.00714.63
7.2.100.4350.01014.98
7.2.90.4460.02014.53
7.2.80.4910.00714.75
7.2.70.3690.00314.83
7.2.60.4880.00314.70
7.2.50.4160.00314.64
7.2.40.3890.00314.99
7.2.30.4420.01314.83
7.2.20.4680.00015.08
7.2.10.5850.00315.02
7.2.00.4380.01314.92
7.1.250.3590.00713.86

preferences:
68.27 ms | 403 KiB | 5 Q