3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $bar = 'baz'; } $reader = function & ($object, $property) { $value = & Closure::bind(function & () use ($property) { return $this->$property; }, $object, null)->__invoke(); return $value; }; $foo = new Foo(); $bar = & $reader($foo, 'bar'); $bar = 'tab'; var_dump($foo);

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.00018.31
8.3.50.0110.01021.99
8.3.40.0060.00918.79
8.3.30.0070.00720.33
8.3.20.0040.00420.16
8.3.10.0030.00621.93
8.3.00.0090.00022.40
8.2.180.0120.00916.63
8.2.170.0040.01122.96
8.2.160.0120.00322.08
8.2.150.0070.00024.18
8.2.140.0000.00924.66
8.2.130.0000.01526.16
8.2.120.0000.00819.64
8.2.110.0000.00922.24
8.2.100.0040.00819.09
8.2.90.0000.00819.26
8.2.80.0030.00619.40
8.2.70.0000.00817.63
8.2.60.0040.00417.68
8.2.50.0080.00018.07
8.2.40.0040.00418.22
8.2.30.0000.00718.00
8.2.20.0070.00017.64
8.2.10.0000.00717.66
8.2.00.0090.00017.75
8.1.280.0070.00725.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0090.00023.97
8.1.230.0110.00019.07
8.1.220.0060.00317.74
8.1.210.0060.00318.77
8.1.200.0000.01017.35
8.1.190.0060.00317.50
8.1.180.0030.00619.13
8.1.170.0000.00818.45
8.1.160.0040.00422.06
8.1.150.0070.00018.55
8.1.140.0040.00417.45
8.1.130.0050.00517.84
8.1.120.0000.00817.48
8.1.110.0050.00317.38
8.1.100.0030.00517.51
8.1.90.0070.00017.45
8.1.80.0040.00317.43
8.1.70.0040.00417.36
8.1.60.0080.00317.56
8.1.50.0040.00417.44
8.1.40.0050.00217.53
8.1.30.0060.00317.61
8.1.20.0000.00817.66
8.1.10.0000.00717.55
8.1.00.0070.00017.36
8.0.300.0000.00718.77
8.0.290.0000.00717.14
8.0.280.0080.00018.46
8.0.270.0040.00417.30
8.0.260.0030.00316.81
8.0.250.0030.00517.02
8.0.240.0080.00016.91
8.0.230.0070.00017.03
8.0.220.0000.00716.96
8.0.210.0040.00417.03
8.0.200.0000.00616.91
8.0.190.0040.00417.04
8.0.180.0040.00416.97
8.0.170.0000.00816.89
8.0.160.0080.00016.83
8.0.150.0040.00416.80
8.0.140.0040.00416.98
8.0.130.0030.00313.41
8.0.120.0000.00816.91
8.0.110.0000.00716.88
8.0.100.0020.00516.78
8.0.90.0050.00216.91
8.0.80.0090.00616.84
8.0.70.0030.00516.83
8.0.60.0040.00416.84
8.0.50.0000.00716.87
8.0.30.0090.01317.13
8.0.20.0110.00717.40
8.0.10.0070.00017.05
8.0.00.0080.01116.87
7.4.330.0020.00215.00
7.4.320.0060.00016.52
7.4.300.0030.00316.61
7.4.290.0000.00716.58
7.4.280.0060.00016.51
7.4.270.0060.00316.58
7.4.260.0100.00016.61
7.4.250.0020.00516.44
7.4.240.0050.00216.63
7.4.230.0000.00716.42
7.4.220.0070.01116.46
7.4.210.0090.00616.62
7.4.200.0000.00716.60
7.4.190.0000.00716.77
7.4.160.0040.01116.58
7.4.150.0090.00917.40
7.4.140.0090.01117.86
7.4.130.0080.00916.68
7.4.120.0110.00816.42
7.4.110.0040.01416.66
7.4.100.0100.00716.46
7.4.90.0070.01616.50
7.4.80.0090.00919.39
7.4.70.0140.00316.53
7.4.60.0150.00416.57
7.4.50.0030.00616.35
7.4.40.0040.00722.77
7.4.30.0080.00816.48
7.4.00.0070.01014.77
7.3.330.0020.00213.40
7.3.320.0050.00013.36
7.3.310.0030.00316.47
7.3.300.0000.00716.37
7.3.290.0030.01116.40
7.3.280.0100.00616.42
7.3.270.0070.01017.40
7.3.260.0170.00016.46
7.3.250.0080.00916.51
7.3.240.0060.01316.66
7.3.230.0030.01416.60
7.3.210.0110.00716.38
7.3.200.0080.00819.39
7.3.190.0100.01316.39
7.3.180.0060.01016.54
7.3.170.0130.00316.56
7.3.160.0060.01016.44
7.3.120.0050.00815.09
7.2.330.0080.00916.37
7.2.320.0120.00616.57
7.2.310.0030.01416.50
7.2.300.0040.01316.45
7.2.290.0170.00016.63
7.2.60.0100.00316.85
7.2.00.0030.01619.26
7.1.200.0040.01215.53
7.1.100.0070.01018.30
7.1.70.0030.00916.93
7.1.60.0130.01319.43
7.1.50.0100.01417.02
7.1.00.0030.03322.40
7.0.200.0040.00416.50
7.0.140.0000.07722.08
7.0.60.0100.07020.01
7.0.50.0070.08717.85
7.0.40.0200.05720.26
7.0.30.0300.07020.25
7.0.20.0230.08020.16
7.0.10.0230.03320.30
7.0.00.0070.08720.23
5.6.280.0070.07020.90
5.6.210.0100.07020.61
5.6.200.0100.07718.21
5.6.190.0100.06020.57
5.6.180.0230.07720.33
5.6.170.0330.06720.45
5.6.160.0030.06020.47
5.6.150.0070.07318.29
5.6.140.0130.08018.18
5.6.130.0070.08318.28
5.6.120.0200.07021.00
5.6.110.0000.04720.99
5.6.100.0300.04721.03
5.6.90.0130.07320.94
5.6.80.0100.07020.38
5.6.70.0270.02720.39
5.5.350.0170.07020.41
5.5.340.0030.04717.97
5.5.330.0130.07720.35
5.5.320.0330.07320.52
5.5.310.0300.04720.30
5.5.300.0100.07017.94
5.5.290.0070.03718.06
5.5.280.0130.08320.81
5.5.270.0030.08320.74
5.5.260.0070.08720.68
5.5.250.0100.08320.68
5.5.240.0030.04320.05
5.4.450.0200.05319.63
5.4.440.0870.06319.58
5.4.430.1100.06319.46
5.4.420.0830.06019.58
5.4.410.1470.06719.27
5.4.400.0330.05318.80
5.4.390.0170.05718.80
5.4.380.0270.05718.60
5.4.370.0170.05018.48
5.4.360.0130.05318.84
5.4.350.0080.04012.02
5.4.340.0130.03912.02
5.4.320.0070.03612.50
5.4.310.0050.04512.50
5.4.300.0090.04212.51
5.4.290.0080.05212.50
5.4.280.0050.04312.41
5.4.270.0100.04012.40
5.4.260.0110.04812.41
5.4.250.0040.05312.40
5.4.240.0130.06019.03
5.4.230.0030.05718.90
5.4.220.0100.06319.02
5.4.210.0100.07018.80
5.4.200.0170.06318.96
5.4.190.0100.06718.99
5.4.180.0030.06018.83
5.4.170.0100.04718.97
5.4.160.0070.06018.93
5.4.150.0100.05318.94
5.4.140.0070.05016.47
5.4.130.0070.04716.63
5.4.120.0000.05716.43
5.4.110.0100.06716.67
5.4.100.0100.05316.43
5.4.90.0130.04016.44
5.4.80.0170.05716.45
5.4.70.0000.05316.50
5.4.60.0100.04716.50
5.4.50.0000.05316.31
5.4.40.0130.04016.64
5.4.30.0070.05316.42
5.4.20.0070.04716.52
5.4.10.0030.05316.54
5.4.00.0030.05315.84
5.3.290.0080.04412.80
5.3.280.0070.05714.62
5.3.270.0130.04714.60
5.3.260.0070.07314.59
5.3.250.0030.05314.70
5.3.240.0070.05014.47
5.3.230.0230.03714.45
5.3.220.0030.05314.40
5.3.210.0070.05714.41
5.3.200.0030.05314.59
5.3.190.0070.05014.66
5.3.180.0070.05014.56
5.3.170.0030.05014.54
5.3.160.0130.04014.68
5.3.150.0100.04714.73
5.3.140.0100.04714.70
5.3.130.0100.05014.56
5.3.120.0070.07014.53
5.3.110.0130.04714.62
5.3.100.0030.05713.94
5.3.90.0000.05314.20
5.3.80.0170.03714.11
5.3.70.0130.04314.20
5.3.60.0000.05313.83
5.3.50.0070.05014.02
5.3.40.0000.05714.03
5.3.30.0070.06013.99
5.3.20.0230.03713.86
5.3.10.0100.04313.65
5.3.00.0100.04313.56
5.2.170.0030.05011.22
5.2.160.0030.04011.22
5.2.150.0000.04711.30
5.2.140.0000.04311.21
5.2.130.0130.03010.92
5.2.120.0030.04011.18
5.2.110.0130.03011.18
5.2.100.0030.04011.16
5.2.90.0070.03711.18
5.2.80.0130.03311.07
5.2.70.0000.04311.14
5.2.60.0100.03711.05
5.2.50.0030.04311.18
5.2.40.0130.03010.82
5.2.30.0000.05010.96
5.2.20.0100.03311.05
5.2.10.0100.03310.94
5.2.00.0030.04010.55
5.1.60.0070.03010.09
5.1.50.0130.0239.83
5.1.40.0070.03010.21
5.1.30.0100.02710.50
5.1.20.0030.03710.53
5.1.10.0130.02710.13
5.1.00.0030.03710.06
5.0.50.0030.0278.38
5.0.40.0030.0278.44
5.0.30.0030.0408.37
5.0.20.0070.0238.15
5.0.10.0000.0308.12
5.0.00.0070.0377.98
4.4.90.0000.0305.90
4.4.80.0000.0235.90
4.4.70.0000.0235.84
4.4.60.0070.0205.80
4.4.50.0030.0205.86
4.4.40.0000.0335.82
4.4.30.0000.0235.80
4.4.20.0000.0235.90
4.4.10.0070.0275.92
4.4.00.0000.0375.88
4.3.110.0030.0205.79
4.3.100.0000.0235.78
4.3.90.0030.0205.71
4.3.80.0000.0335.76
4.3.70.0070.0205.87
4.3.60.0030.0205.75
4.3.50.0000.0205.88
4.3.40.0000.0375.67
4.3.30.0030.0275.60
4.3.20.0000.0305.60
4.3.10.0000.0235.60
4.3.00.0070.0176.71

preferences:
41.9 ms | 401 KiB | 5 Q