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 1; }; 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.0070.01316.63
8.3.50.0120.00522.09
8.3.40.0070.01018.54
8.3.30.0220.00019.09
8.3.20.0040.00420.02
8.3.10.0080.00023.60
8.3.00.0030.00619.08
8.2.180.0000.01516.75
8.2.170.0150.00622.96
8.2.160.0190.00320.19
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0080.00026.16
8.2.120.0090.00020.60
8.2.110.0030.00620.52
8.2.100.0040.00717.91
8.2.90.0040.00419.17
8.2.80.0050.00317.97
8.2.70.0000.00817.38
8.2.60.0040.00417.80
8.2.50.0030.00618.07
8.2.40.0040.00419.94
8.2.30.0040.00418.31
8.2.20.0070.00017.68
8.2.10.0000.00717.93
8.2.00.0030.00617.68
8.1.280.0170.00325.92
8.1.270.0040.00423.91
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0130.00717.25
8.1.230.0070.00419.55
8.1.220.0050.00317.74
8.1.210.0060.00618.77
8.1.200.0090.00017.35
8.1.190.0060.00317.11
8.1.180.0040.00418.10
8.1.170.0040.00418.51
8.1.160.0040.00422.13
8.1.150.0040.00418.64
8.1.140.0070.00017.45
8.1.130.0030.00317.74
8.1.120.0040.00417.46
8.1.110.0000.00817.35
8.1.100.0000.00717.46
8.1.90.0040.00417.35
8.1.80.0040.00417.50
8.1.70.0000.00817.36
8.1.60.0000.00717.55
8.1.50.0040.00417.50
8.1.40.0040.00417.49
8.1.30.0080.00017.71
8.1.20.0080.00017.55
8.1.10.0070.00017.36
8.1.00.0020.00517.43
8.0.300.0030.00618.77
8.0.290.0030.00317.02
8.0.280.0040.00418.28
8.0.270.0000.00817.19
8.0.260.0000.00617.19
8.0.250.0000.00716.89
8.0.240.0000.00716.80
8.0.230.0070.00016.82
8.0.220.0030.00316.77
8.0.210.0080.00016.71
8.0.200.0000.00816.93
8.0.190.0000.00716.91
8.0.180.0000.00816.78
8.0.170.0040.00416.79
8.0.160.0030.00316.95
8.0.150.0000.00716.84
8.0.140.0000.00716.82
8.0.130.0000.00613.36
8.0.120.0000.00816.80
8.0.110.0080.00016.95
8.0.100.0080.00016.88
8.0.90.0000.00816.79
8.0.80.0120.00616.84
8.0.70.0070.00016.96
8.0.60.0050.00216.71
8.0.50.0040.00416.75
8.0.30.0100.01317.00
8.0.20.0060.01217.40
8.0.10.0000.00817.00
8.0.00.0140.00616.63
7.4.330.0000.00515.20
7.4.320.0060.00016.61
7.4.300.0000.00616.49
7.4.290.0030.00316.53
7.4.280.0000.00816.59
7.4.270.0070.00016.44
7.4.260.0000.00716.63
7.4.250.0000.00716.48
7.4.240.0060.00216.57
7.4.230.0030.00516.63
7.4.220.0060.01216.71
7.4.210.0070.00716.49
7.4.200.0000.00816.49
7.4.190.0000.00716.73
7.4.160.0100.00616.28
7.4.150.0030.01417.40
7.4.140.0100.00717.86
7.4.130.0110.00816.33
7.4.120.0080.00916.47
7.4.110.0100.00716.48
7.4.100.0060.01216.39
7.4.90.0130.00316.32
7.4.80.0150.00319.39
7.4.70.0070.01016.70
7.4.60.0110.00616.45
7.4.50.0000.00716.11
7.4.40.0100.00716.20
7.4.30.0080.00816.53
7.4.00.0100.00714.88
7.3.330.0060.00013.19
7.3.320.0070.00013.24
7.3.310.0050.00216.25
7.3.300.0040.00416.16
7.3.290.0150.00616.37
7.3.280.0050.01116.29
7.3.270.0040.01317.40
7.3.260.0100.00816.32
7.3.250.0120.00816.41
7.3.240.0090.01216.26
7.3.230.0090.01516.39
7.3.210.0140.00316.41
7.3.200.0160.01119.39
7.3.190.0080.01516.18
7.3.180.0120.00416.21
7.3.170.0120.00316.59
7.3.160.0100.00616.42
7.3.120.0030.01014.71
7.2.330.0170.00016.37
7.2.320.0130.01116.36
7.2.310.0090.00816.68
7.2.300.0030.01316.64
7.2.290.0110.00616.27
7.2.110.0000.01216.15
7.2.60.0030.00816.71
7.2.50.0040.01116.54
7.1.200.0070.00715.86
7.1.70.0050.00317.07
7.1.60.0070.01619.46
7.1.50.0060.00916.73
7.1.00.0100.06722.48
7.0.200.0120.00316.55
7.0.140.0000.06721.93
7.0.80.0670.07019.93
7.0.70.0370.04720.04
7.0.60.0570.05719.99
7.0.50.0270.08320.30
7.0.40.0130.06320.08
7.0.30.0130.08320.14
7.0.20.0170.07720.11
7.0.10.0100.05020.10
7.0.00.0170.06720.07
5.6.280.0030.07720.78
5.6.230.0100.08020.57
5.6.220.0170.07320.67
5.6.210.0100.08320.59
5.6.200.0130.06721.05
5.6.190.0100.08321.06
5.6.180.0000.08321.12
5.6.170.0100.05721.09
5.6.160.0100.04320.93
5.6.150.0070.08321.04
5.6.140.0030.05321.03
5.6.130.0030.09321.04
5.6.120.0000.05721.04
5.6.110.0100.04720.93
5.6.100.0070.08721.10
5.6.90.0170.07020.94
5.6.80.0130.07320.41
5.6.70.0030.08320.52
5.6.60.0100.07320.46
5.6.50.0070.04720.43
5.6.40.0030.05020.45
5.6.30.0000.04320.30
5.6.20.0030.06020.50
5.6.10.0030.05020.44
5.6.00.0100.05020.37
5.5.370.0030.06020.45
5.5.360.0130.07020.55
5.5.350.0130.04720.46
5.5.340.0100.06320.81
5.5.330.0170.07020.87
5.5.320.0130.07320.94
5.5.310.0030.08320.93
5.5.300.0070.07320.80
5.5.290.0130.08320.84
5.5.280.0100.08320.73
5.5.270.0130.07020.87
5.5.260.0030.09020.78
5.5.250.0130.07320.64
5.5.240.0170.06720.18
5.5.230.0030.07320.14
5.5.220.0100.04320.14
5.5.210.0000.04320.24
5.5.200.0070.08320.24
5.5.190.0030.06320.23
5.5.180.0030.04320.28
5.5.160.0070.04720.08
5.5.150.0000.04320.11
5.5.140.0130.03320.24
5.5.130.0030.03720.18
5.5.120.0000.04020.22
5.5.110.0170.07020.10
5.5.100.0070.03720.11
5.5.90.0100.03320.17
5.5.80.0030.04020.07
5.5.70.0030.04020.07
5.5.60.0070.03720.14
5.5.50.0000.04020.16
5.5.40.0030.04020.14
5.5.30.0070.07020.06
5.5.20.0030.04320.15
5.5.10.0100.03020.05
5.5.00.0070.04020.00
5.4.450.0070.08319.27
5.4.440.0170.07319.18
5.4.430.0100.04019.27
5.4.420.0070.05719.24
5.4.410.0030.07019.35
5.4.400.0100.07719.03
5.4.390.0130.07319.04
5.4.380.0100.07319.12
5.4.370.0070.08019.05
5.4.360.0130.07318.95
5.4.350.0070.04719.21
5.4.340.0130.04319.18
5.4.320.0070.04318.85
5.4.310.0000.04018.95
5.4.300.0030.04019.04
5.4.290.0030.03719.22
5.4.280.0070.03719.03
5.4.270.0070.07719.23
5.4.260.0170.06719.12
5.4.250.0070.03319.20
5.4.240.0070.04719.04
5.4.230.0030.03719.14
5.4.220.0070.03018.88
5.4.210.0030.03319.17
5.4.200.0070.03319.17
5.4.190.0030.03719.13
5.4.180.0100.06318.93
5.4.170.0000.04719.11
5.4.160.0070.05718.92
5.4.150.0000.04019.11
5.4.140.0030.03016.50
5.4.130.0030.03716.18
5.4.120.0100.03016.43
5.4.110.0000.04016.50
5.4.100.0070.04016.34
5.4.90.0130.02716.37
5.4.80.0070.04316.31
5.4.70.0070.05316.38
5.4.60.0000.04716.40
5.4.50.0000.03716.44
5.4.40.0030.03716.54
5.4.30.0130.02316.31
5.4.20.0030.03316.32
5.4.10.0100.02716.44
5.4.00.0000.05715.89
5.3.290.0100.03314.60
5.3.280.0000.03714.61
5.3.270.0070.03714.54
5.3.260.0030.06714.64
5.3.250.0000.05714.58
5.3.240.0000.04014.64
5.3.230.0000.03314.66
5.3.220.0030.03714.68
5.3.210.0100.06014.66
5.3.200.0000.04714.55
5.3.190.0000.04314.50
5.3.180.0070.03714.57
5.3.170.0000.03314.55
5.3.160.0130.07014.63
5.3.150.0100.07314.54
5.3.140.0030.03014.50
5.3.130.0030.03314.52
5.3.120.0070.03314.60
5.3.110.0070.03314.57
5.3.100.0000.04014.01
5.3.90.0000.03314.08
5.3.80.0030.03714.16
5.3.70.0030.03713.95
5.3.60.0070.04714.11
5.3.50.0070.03314.01
5.3.40.0070.03313.84
5.3.30.0030.03713.92
5.3.20.0030.03313.58
5.3.10.0070.03013.59
5.3.00.0130.06013.53

preferences:
37.01 ms | 401 KiB | 5 Q