3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $foo =2; } class Proxy extends Foo { public function getFoo() { $getter = function(){return $this->foo;}; return \Closure::bind($getter, $this, 'Foo'); } } $hydrated = new Proxy(); $getter = $hydrated->getFoo(); var_dump($getter());

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.0150.00416.63
8.3.50.0130.00621.16
8.3.40.0000.01418.67
8.3.30.0120.00318.59
8.3.20.0050.00320.07
8.3.10.0070.00021.94
8.3.00.0040.00421.90
8.2.180.0110.00725.92
8.2.170.0170.00318.91
8.2.160.0070.01322.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0050.00320.80
8.2.120.0050.00326.35
8.2.110.0050.00519.02
8.2.100.0110.00018.04
8.2.90.0030.00518.98
8.2.80.0050.00317.97
8.2.70.0060.00317.63
8.2.60.0080.00318.03
8.2.50.0030.00618.09
8.2.40.0090.00022.15
8.2.30.0030.00619.51
8.2.20.0000.00717.80
8.2.10.0000.00818.00
8.2.00.0050.00318.05
8.1.280.0110.00425.92
8.1.270.0070.01122.23
8.1.260.0070.00028.09
8.1.250.0080.00028.09
8.1.240.0060.00322.45
8.1.230.0070.00417.82
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0100.00017.35
8.1.190.0050.00317.00
8.1.180.0080.00018.10
8.1.170.0000.00918.49
8.1.160.0050.00220.78
8.1.150.0000.00718.84
8.1.140.0040.00419.47
8.1.130.0000.00717.64
8.1.120.0000.00717.41
8.1.110.0040.00417.48
8.1.100.0040.00417.38
8.1.90.0020.00517.44
8.1.80.0030.00517.39
8.1.70.0000.00717.38
8.1.60.0030.00517.60
8.1.50.0080.00017.53
8.1.40.0030.00517.43
8.1.30.0030.00617.68
8.1.20.0060.00317.44
8.1.10.0000.00717.67
8.1.00.0000.00817.38
8.0.300.0030.00618.77
8.0.290.0000.00816.63
8.0.280.0030.00318.39
8.0.270.0030.00317.19
8.0.260.0030.00318.40
8.0.250.0060.00016.94
8.0.240.0000.00716.83
8.0.230.0040.00416.89
8.0.220.0040.00416.71
8.0.210.0000.00716.85
8.0.200.0000.00716.82
8.0.190.0060.00316.99
8.0.180.0000.01016.96
8.0.170.0050.00316.95
8.0.160.0040.00416.93
8.0.150.0050.00316.85
8.0.140.0000.00816.74
8.0.130.0000.00613.39
8.0.120.0080.00016.75
8.0.110.0070.00016.86
8.0.100.0000.00816.93
8.0.90.0000.00716.78
8.0.80.0060.01216.86
8.0.70.0070.00016.72
8.0.60.0000.00716.88
8.0.50.0040.00416.90
8.0.30.0080.01217.14
8.0.20.0090.01017.40
8.0.10.0000.00817.01
8.0.00.0080.00916.87
7.4.330.0000.00516.84
7.4.320.0030.00316.63
7.4.300.0000.00716.64
7.4.290.0070.00016.63
7.4.280.0100.00016.40
7.4.270.0000.00716.52
7.4.260.0000.00716.56
7.4.250.0040.00416.57
7.4.240.0030.00316.37
7.4.230.0030.00316.54
7.4.220.0150.00316.48
7.4.210.0150.00016.51
7.4.200.0030.00316.61
7.4.160.0080.00816.32
7.4.150.0180.00017.40
7.4.140.0070.01117.86
7.4.130.0120.00816.50
7.4.120.0100.00816.44
7.4.110.0140.00916.43
7.4.100.0030.01316.64
7.4.90.0150.00316.57
7.4.80.0140.00319.39
7.4.70.0100.01016.44
7.4.60.0100.00716.45
7.4.50.0060.01116.29
7.4.40.0160.00416.56
7.4.30.0150.00616.51
7.4.00.0090.00615.10
7.3.330.0020.00213.35
7.3.320.0000.00513.12
7.3.310.0030.00316.34
7.3.300.0030.00316.25
7.3.290.0150.00816.26
7.3.280.0110.00816.32
7.3.270.0090.01317.40
7.3.260.0070.01416.65
7.3.250.0090.00816.32
7.3.240.0030.01616.40
7.3.230.0160.00316.39
7.3.210.0120.00616.41
7.3.200.0090.01219.39
7.3.190.0110.00916.35
7.3.180.0140.00616.42
7.3.170.0140.00316.38
7.3.160.0030.01316.54
7.2.330.0090.00916.37
7.2.320.0110.01116.34
7.2.310.0070.01016.54
7.2.300.0000.01716.72
7.2.290.0070.01016.32
7.2.00.0030.00919.09
7.1.100.0040.00817.66
7.1.70.0030.01016.95
7.1.60.0180.00419.40
7.1.50.0080.01516.63
7.1.00.0000.08022.54
7.0.200.0890.01214.55
7.0.60.0330.07320.07
7.0.50.0070.08717.95
7.0.40.0100.04019.96
7.0.30.0230.05020.26
7.0.20.0200.06320.34
7.0.10.0130.08020.23
7.0.00.0100.08020.16
5.6.280.0070.05021.13
5.6.210.0200.06020.57
5.6.200.0030.07718.15
5.6.190.0070.07020.50
5.6.180.0170.04320.47
5.6.170.0170.05020.57
5.6.160.0070.07720.39
5.6.150.0030.07318.20
5.6.140.0030.08318.28
5.6.130.0130.07718.18
5.6.120.0030.07321.04
5.6.110.0030.04321.11
5.6.100.0130.08321.02
5.6.90.0070.08021.01
5.6.80.0170.07320.36
5.5.350.0230.06320.42
5.5.340.0030.07318.09
5.5.330.0130.06720.39
5.5.320.0230.08320.34
5.5.310.0230.04020.19
5.5.300.0030.03717.93
5.5.290.0000.04318.09
5.5.280.0100.08020.97
5.5.270.0000.04320.98
5.5.260.0100.07020.89
5.5.250.0130.05020.69
5.5.240.3930.04020.25

preferences:
51.11 ms | 401 KiB | 5 Q