3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public function getFunc() { return function () { return true; }; } public function __destruct() { echo "Destructor\n"; } } $foo = new Foo(); $fn = $foo->getFunc(); unset($foo); echo "After Unset\n";

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.0090.00616.50
8.3.50.0000.01519.92
8.3.40.0120.00320.65
8.3.30.0110.00718.63
8.3.20.0050.00224.18
8.3.10.0070.00024.66
8.3.00.0080.00026.16
8.2.180.0170.00325.92
8.2.170.0120.00318.80
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0070.00019.77
8.2.110.0040.00821.10
8.2.100.0110.00017.72
8.2.90.0040.00419.74
8.2.80.0000.00818.09
8.2.70.0040.00417.63
8.2.60.0040.00417.50
8.2.50.0030.00617.55
8.2.40.0040.00419.78
8.2.30.0050.00318.12
8.2.20.0050.00318.12
8.2.10.0030.00619.09
8.2.00.0000.00719.25
8.1.270.0060.00323.99
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0030.00622.42
8.1.230.0040.00720.91
8.1.220.0040.00417.74
8.1.210.0040.00418.79
8.1.200.0030.00617.36
8.1.190.0080.00017.35
8.1.180.0050.00318.10
8.1.170.0080.00017.66
8.1.160.0000.00718.88
8.1.150.0020.00518.70
8.1.140.0000.00718.77
8.1.130.0000.00818.89
8.1.120.0040.00417.42
8.1.110.0030.00517.34
8.1.100.0040.00417.48
8.1.90.0000.00817.44
8.1.80.0030.00517.34
8.1.70.0000.00717.50
8.1.60.0050.00317.48
8.1.50.0000.00817.53
8.1.40.0040.00417.49
8.1.30.0030.00617.66
8.1.20.0080.00017.58
8.1.10.0000.00717.58
8.1.00.0070.00017.39
8.0.300.0070.00020.11
8.0.290.0040.00416.63
8.0.280.0030.00318.45
8.0.270.0040.00417.92
8.0.260.0000.00618.64
8.0.250.0000.00816.81
8.0.240.0070.00016.88
8.0.230.0030.00316.85
8.0.220.0030.00316.81
8.0.210.0000.01016.73
8.0.200.0000.00816.95
8.0.190.0030.00616.84
8.0.180.0030.00716.93
8.0.170.0030.00516.96
8.0.160.0050.00316.77
8.0.150.0000.00816.86
8.0.140.0030.00316.91
8.0.130.0030.00313.27
8.0.120.0040.00814.46
8.0.110.0050.00414.49
8.0.100.0030.00516.59
8.0.90.0030.00416.50
8.0.80.0040.00416.53
8.0.70.0030.00416.52
8.0.60.0040.00416.52
8.0.50.0030.00516.52
8.0.30.0030.00516.52
8.0.20.0030.00416.57
8.0.10.0030.00416.65
8.0.00.0030.00416.70
7.4.330.0000.00515.55
7.4.320.0070.00016.57
7.4.300.0040.00416.60
7.4.290.0000.00716.55
7.4.280.0000.00916.48
7.4.270.0040.00416.60
7.4.260.0030.00316.63
7.4.250.0110.00114.35
7.4.240.0040.00714.31
7.4.230.0040.00316.22
7.4.220.0040.00316.25
7.4.210.0030.00416.25
7.4.200.0040.00416.28
7.4.190.0040.00316.31
7.4.180.0040.00416.31
7.4.160.0040.00416.30
7.4.150.0040.00416.22
7.4.140.0030.00416.18
7.4.130.0040.00416.18
7.4.120.0030.00416.15
7.4.110.0040.00416.15
7.4.100.0030.00416.22
7.4.90.0040.00316.19
7.4.80.0040.00316.13
7.4.70.0030.00416.17
7.4.60.0040.00416.21
7.4.50.0040.00416.11
7.4.40.0040.00316.11
7.4.30.0030.00416.13
7.4.20.0030.00416.13
7.4.10.0030.00416.18
7.4.00.0030.00516.24
7.3.330.0070.00016.34
7.3.320.0050.00513.13
7.3.310.0080.00214.14
7.3.300.0040.00415.98
7.3.290.0040.00315.98
7.3.280.0030.00416.00
7.3.270.0030.00415.99
7.3.260.0030.00415.99
7.3.250.0040.00315.97
7.3.240.0050.00315.99
7.3.230.0030.00515.98
7.3.220.0030.00415.91
7.3.210.0040.00415.93
7.3.200.0040.00315.89
7.3.190.0040.00415.91
7.3.180.0030.00415.91
7.3.170.0030.00515.91
7.3.160.0040.00415.92
7.3.150.0020.00515.93
7.3.140.0040.00315.91
7.3.130.0030.00415.92
7.3.120.0040.00315.92
7.3.110.0040.00315.85
7.3.100.0030.00415.87
7.3.90.0030.00516.17
7.3.80.0040.00415.93
7.3.70.0030.00416.00
7.3.60.0030.00416.05
7.3.50.0040.00416.04
7.3.40.0040.00416.02
7.3.30.0030.00416.03
7.3.20.0040.00416.88
7.3.10.0040.00416.87
7.3.00.0050.00416.85

preferences:
59.57 ms | 400 KiB | 5 Q