3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { private $f; public function __construct(&$f) { $this->f = &$f; } public function __destruct() { $this->f = 1; } } $f = function () use (&$f) { $t = new test($f); print "after this parent $f shouldn't be a closure anymore...\n"; }; $f(); var_dump($f);

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.00718.56
8.3.50.0110.00722.01
8.3.40.0100.00718.89
8.3.30.0000.01419.04
8.3.20.0040.00420.22
8.3.10.0080.00022.09
8.3.00.0040.00422.58
8.2.180.0070.01016.75
8.2.170.0030.01322.96
8.2.160.0050.00820.94
8.2.150.0000.00724.18
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0000.00817.63
8.2.110.0060.00322.21
8.2.100.0030.00919.37
8.2.90.0040.00419.14
8.2.80.0000.00818.03
8.2.70.0000.00817.50
8.2.60.0060.00318.03
8.2.50.0000.00818.07
8.2.40.0000.00818.16
8.2.30.0070.00018.01
8.2.20.0000.00817.59
8.2.10.0030.00617.81
8.2.00.0040.00417.63
8.1.280.0100.00325.92
8.1.270.0000.00821.96
8.1.260.0050.00226.35
8.1.250.0030.00528.09
8.1.240.0120.00423.87
8.1.230.0110.00019.04
8.1.220.0030.00617.76
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0030.00617.54
8.1.180.0070.00318.10
8.1.170.0050.00318.65
8.1.160.0040.00422.03
8.1.150.0040.00418.64
8.1.140.0040.00417.38
8.1.130.0080.00017.77
8.1.120.0020.00517.50
8.1.110.0100.00017.38
8.1.100.0000.00817.45
8.1.90.0040.00417.46
8.1.80.0000.00717.45
8.1.70.0000.00717.44
8.1.60.0040.00417.49
8.1.50.0040.00417.50
8.1.40.0000.00817.39
8.1.30.0070.00017.58
8.1.20.0050.00317.59
8.1.10.0060.00317.63
8.1.00.0000.00817.50
8.0.300.0040.00418.77
8.0.290.0070.00017.18
8.0.280.0030.00318.45
8.0.270.0030.00317.20
8.0.260.0000.00616.81
8.0.250.0030.00617.00
8.0.240.0070.00016.92
8.0.230.0000.00816.95
8.0.220.0000.00717.01
8.0.210.0070.00016.90
8.0.200.0080.00016.96
8.0.190.0040.00416.98
8.0.180.0040.00417.05
8.0.170.0080.00016.87
8.0.160.0000.00816.90
8.0.150.0060.00616.97
8.0.140.0060.00316.82
8.0.130.0000.00513.43
8.0.120.0020.00516.95
8.0.110.0000.00816.88
8.0.100.0040.00416.92
8.0.90.0040.00416.82
8.0.80.0100.00717.01
8.0.70.0060.00316.85
8.0.60.0050.00216.94
8.0.50.0000.00816.90
8.0.30.0090.01017.05
8.0.20.0100.00817.40
8.0.10.0050.00317.04
8.0.00.0140.00816.93
7.4.330.0060.00015.07
7.4.320.0030.00316.52
7.4.300.0060.00016.48
7.4.290.0040.00416.62
7.4.280.0030.00316.60
7.4.270.0060.00016.63
7.4.260.0020.00516.49
7.4.250.0030.00616.50
7.4.240.0040.00416.62
7.4.230.0000.00816.41
7.4.220.0100.01016.63
7.4.210.0060.01116.57
7.4.200.0000.00716.41
7.4.190.0070.00016.64
7.4.160.0090.00616.62
7.4.150.0040.01417.40
7.4.140.0110.00617.86
7.4.130.0090.00916.54
7.4.120.0090.00816.52
7.4.110.0090.00916.63
7.4.100.0000.01716.54
7.4.90.0120.00616.38
7.4.80.0110.01119.39
7.4.70.0060.00916.71
7.4.60.0070.01016.58
7.4.50.0030.00316.66
7.4.40.0090.00622.77
7.4.30.0150.00216.61
7.4.00.0070.00315.05
7.3.330.0000.00513.41
7.3.320.0000.00513.46
7.3.310.0060.00016.44
7.3.300.0020.00516.45
7.3.290.0100.00316.43
7.3.280.0090.00716.39
7.3.270.0070.01017.40
7.3.260.0160.00616.54
7.3.250.0070.01016.43
7.3.240.0120.00616.54
7.3.230.0090.00616.67
7.3.210.0140.00316.43
7.3.200.0150.00519.39
7.3.190.0210.00016.38
7.3.180.0060.01016.58
7.3.170.0000.01516.41
7.3.160.0090.00616.56
7.3.120.0070.00714.66
7.2.330.0040.01316.81
7.2.320.0110.00616.51
7.2.310.0040.01616.76
7.2.300.0210.00316.79
7.2.290.0170.00016.79
7.2.60.0070.00716.93
7.2.00.0060.00619.60
7.1.200.0060.00615.61
7.1.100.0090.00317.99
7.1.70.0000.01016.82
7.1.60.0070.01719.82
7.1.50.0070.01416.70
7.1.00.0000.08022.33
7.0.200.0030.00316.91
7.0.140.0030.07321.97
7.0.100.0070.08019.89
7.0.90.0770.05719.94
7.0.80.0500.07719.88
7.0.70.0370.06719.96
7.0.60.0330.05320.03
7.0.50.0400.08020.32
7.0.40.0070.08720.12
7.0.30.0030.08319.95
7.0.20.0030.07020.05
7.0.10.0070.05720.12
7.0.00.0070.05320.05
5.6.280.0000.07721.05
5.6.250.0030.09320.49
5.6.240.0070.07720.44
5.6.230.0070.08320.68
5.6.220.0100.06320.45
5.6.210.0130.07720.52
5.6.200.0230.07321.09
5.6.190.0070.05720.99
5.6.180.0070.08021.06
5.6.170.0100.08020.98
5.6.160.0100.04021.04
5.6.150.0030.08021.13
5.6.140.0130.07720.91
5.6.130.0170.04720.98
5.6.120.0030.05720.90
5.6.110.0000.05320.88
5.6.100.0070.08721.02
5.6.90.0070.06720.94
5.6.80.0170.05720.37
5.6.70.0100.07720.37
5.6.60.0030.06720.49
5.6.50.0100.07320.51
5.6.40.0030.07320.39
5.6.30.0070.08320.34
5.6.20.0170.06320.34
5.6.10.0030.08320.27
5.6.00.0100.04020.38
5.5.380.0030.08720.41
5.5.370.0000.09020.38
5.5.360.0170.07720.36
5.5.350.0000.08720.38
5.5.340.0030.08020.68
5.5.330.0170.08020.83
5.5.320.0030.08320.75
5.5.310.0130.08020.88
5.5.300.0070.07720.84
5.5.290.0070.05020.87
5.5.280.0030.08320.81
5.5.270.0070.06020.72
5.5.260.0100.08320.79
5.5.250.0030.08720.64
5.5.240.0100.07020.27
5.5.230.0230.06720.24
5.5.220.0130.05320.16
5.5.210.0170.08020.20
5.5.200.0030.08020.18
5.5.190.0100.05320.10
5.5.180.0170.07020.19
5.5.160.0170.07720.21
5.5.150.0030.07720.20
5.5.140.0070.03720.18
5.5.130.0030.07320.18
5.5.120.0100.06320.10
5.5.110.0130.05320.20
5.5.100.0070.04720.11
5.5.90.0130.03720.11
5.5.80.0130.03719.96
5.5.70.0100.05020.03
5.5.60.0100.06320.09
5.5.50.0100.06720.09
5.5.40.0070.07320.05
5.5.30.0130.06319.95
5.5.20.0030.04720.01
5.5.10.0030.04020.04
5.5.00.0030.04719.95
5.4.450.0100.06319.28
5.4.440.0030.08019.45
5.4.430.0100.06719.22
5.4.420.0130.07319.37
5.4.410.0130.07019.38
5.4.400.0070.06719.13
5.4.390.0030.08019.13
5.4.380.0130.07018.95
5.4.370.0130.07019.14
5.4.360.0070.07718.95
5.4.350.0070.07718.88
5.4.340.0100.06719.25
5.4.320.0100.06718.95
5.4.310.0100.05319.18
5.4.300.0070.08319.20
5.4.290.0030.07718.84
5.4.280.0000.07319.16
5.4.270.0030.06018.89
5.4.260.0100.08019.12
5.4.250.0070.05719.02
5.4.240.0100.07019.16
5.4.230.0130.06719.22
5.4.220.0130.06718.86
5.4.210.0170.06319.20
5.4.200.0000.05318.86
5.4.190.0170.07019.15
5.4.180.0030.04318.93
5.4.170.0070.04318.99
5.4.160.0000.04719.02
5.4.150.0000.04019.12
5.4.140.0070.03316.35
5.4.130.0030.03016.34
5.4.120.0100.03016.43
5.4.110.0030.03716.56
5.4.100.0070.03316.35
5.4.90.0030.03016.43
5.4.80.0030.07016.48
5.4.70.0070.06016.47
5.4.60.0070.03016.31
5.4.50.0030.03716.40
5.4.40.0030.03716.53
5.4.30.0070.04016.39
5.4.20.0000.04316.33
5.4.10.0030.03316.41
5.4.00.0070.03015.83
5.3.290.0100.07314.69
5.3.280.0100.06714.67
5.3.270.0070.04714.73
5.3.260.0070.04714.63
5.3.250.0070.04314.72
5.3.240.0070.03014.73
5.3.230.0000.06314.53
5.3.220.0100.05014.63
5.3.210.0030.04014.64
5.3.200.0130.04314.54
5.3.190.0000.04014.59
5.3.180.0000.06314.53
5.3.170.0000.05714.68
5.3.160.0100.05314.57
5.3.150.0030.04714.66
5.3.140.0000.03714.62
5.3.130.0000.04014.61
5.3.120.0000.04014.57
5.3.110.0100.06714.52
5.3.100.0030.07714.16
5.3.90.0100.02714.12
5.3.80.0030.05014.00
5.3.70.0070.03314.09
5.3.60.0070.03313.94
5.3.50.0030.03713.97
5.3.40.0000.04013.86
5.3.30.0030.03314.02
5.3.20.0030.03713.75
5.3.10.0000.04013.58
5.3.00.0030.03313.66
5.2.170.0000.03011.29
5.2.160.0030.03011.03
5.2.150.0100.02011.05
5.2.140.0030.02711.25
5.2.130.0030.04711.13
5.2.120.0000.03311.21
5.2.110.0070.02710.96
5.2.100.0070.02311.22
5.2.90.0030.02711.20
5.2.80.0070.02311.16
5.2.70.0000.03311.23
5.2.60.0030.04710.91
5.2.50.0030.02710.88
5.2.40.0030.02711.09
5.2.30.0130.01710.98
5.2.20.0030.03010.87
5.2.10.0000.03010.95
5.2.00.0000.03010.64
5.1.60.0000.02310.11
5.1.50.0030.02010.05
5.1.40.0030.0279.99
5.1.30.0030.02310.20
5.1.20.0030.02310.45
5.1.10.0030.0239.96
5.1.00.0000.0279.94
5.0.50.0000.0238.39
5.0.40.0030.0178.27
5.0.30.0000.0338.22
5.0.20.0100.0178.23
5.0.10.0030.0438.16
5.0.00.0000.0638.20
4.4.90.0030.0137.45
4.4.80.0030.0137.45
4.4.70.0030.0177.45
4.4.60.0000.0207.45
4.4.50.0030.0137.45
4.4.40.0000.0237.45
4.4.30.0000.0177.45
4.4.20.0000.0207.45
4.4.10.0000.0177.45
4.4.00.0000.0237.45
4.3.110.0030.0107.45
4.3.100.0000.0137.45
4.3.90.0000.0377.45
4.3.80.0070.0507.45
4.3.70.0000.0177.45
4.3.60.0000.0337.45
4.3.50.0000.0277.45
4.3.40.0000.0277.45
4.3.30.0070.0307.45
4.3.20.0000.0207.45
4.3.10.0000.0407.45
4.3.00.0000.0337.45

preferences:
38.31 ms | 401 KiB | 5 Q