3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = new class { public function __set(string $name, $value) { throw new \Exception; } }; $foo->destructListener = new class { public function __destruct() {echo "bye"; debug_print_backtrace(); } }; unset($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.70.0100.01418.43
8.3.60.0070.00716.63
8.3.50.0090.01122.04
8.3.40.0000.01718.96
8.3.30.0130.00319.02
8.3.20.0050.00220.20
8.3.10.0030.00521.94
8.3.00.0080.00020.91
8.2.190.0090.00616.60
8.2.180.0150.00416.63
8.2.170.0060.00922.96
8.2.160.0090.00619.34
8.2.150.0000.00824.18
8.2.140.0000.00724.66
8.2.130.0070.00022.31
8.2.120.0030.00526.35
8.2.110.0000.01020.89
8.2.100.0080.00418.04
8.2.90.0050.00319.23
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0000.00817.93
8.2.50.0060.00318.10
8.2.40.0040.00420.65
8.2.30.0050.00320.60
8.2.20.0050.00317.74
8.2.10.0050.00318.00
8.2.00.0000.00718.11
8.1.280.0100.00725.92
8.1.270.0090.00023.92
8.1.260.0100.00028.09
8.1.250.0000.00728.09
8.1.240.0150.00022.46
8.1.230.0040.00717.77
8.1.220.0030.00617.74
8.1.210.0090.00018.77
8.1.200.0060.00317.25
8.1.190.0030.00617.35
8.1.180.0080.00018.10
8.1.170.0040.00418.64
8.1.160.0040.00420.75
8.1.150.0000.00718.78
8.1.140.0000.00719.62
8.1.130.0000.00817.57
8.1.120.0050.00217.35
8.1.110.0000.00717.45
8.1.100.0020.00517.44
8.1.90.0000.00917.47
8.1.80.0000.00817.47
8.1.70.0030.00317.28
8.1.60.0040.00417.48
8.1.50.0030.00517.55
8.1.40.0000.00817.40
8.1.30.0000.00917.64
8.1.20.0040.00417.49
8.1.10.0060.00317.35
8.1.00.0000.00817.52
8.0.300.0000.00718.77
8.0.290.0000.00716.88
8.0.280.0030.00318.44
8.0.270.0060.00317.30
8.0.260.0050.00217.29
8.0.250.0030.00317.06
8.0.240.0000.00816.91
8.0.230.0050.00216.97
8.0.220.0000.00716.85
8.0.210.0000.00716.88
8.0.200.0060.00016.97
8.0.190.0040.00416.86
8.0.180.0040.00416.91
8.0.170.0050.00316.93
8.0.160.0030.00316.91
8.0.150.0000.00716.90
8.0.140.0070.00016.87
8.0.130.0030.00313.36
8.0.120.0040.00416.83
8.0.110.0000.00816.89
8.0.100.0080.00016.82
8.0.90.0040.00416.84
8.0.80.0040.01116.88
8.0.70.0040.00416.81
8.0.60.0030.00516.89
8.0.50.0050.00316.79
8.0.30.0050.01217.20
8.0.20.0060.01217.40
8.0.10.0040.00416.96
8.0.00.0130.00616.72
7.4.330.0020.00215.08
7.4.320.0060.00016.41
7.4.300.0000.00616.59
7.4.290.0070.00016.60
7.4.280.0030.00516.46
7.4.270.0000.00716.50
7.4.260.0000.00716.53
7.4.250.0070.00016.56
7.4.240.0070.00016.49
7.4.230.0070.00016.61
7.4.220.0110.01116.55
7.4.210.0060.01216.57
7.4.200.0000.00716.69
7.4.160.0110.00616.66
7.4.150.0100.00717.40
7.4.140.0110.00817.86
7.4.130.0120.00616.56
7.4.120.0090.00816.59
7.4.110.0080.00816.39
7.4.100.0030.01316.48
7.4.90.0110.00516.59
7.4.80.0130.00319.39
7.4.70.0030.01316.41
7.4.60.0080.00816.46
7.4.50.0020.01416.51
7.4.40.0080.00816.69
7.4.30.0100.01316.59
7.4.10.0120.00614.97
7.4.00.0090.00914.93
7.3.330.0000.00513.22
7.3.320.0030.00313.18
7.3.310.0030.00316.40
7.3.300.0070.00016.21
7.3.290.0070.00016.44
7.3.280.0060.01016.36
7.3.270.0110.00717.40
7.3.260.0100.00616.57
7.3.250.0140.00516.38
7.3.240.0060.01116.40
7.3.230.0030.01316.40
7.3.210.0120.00416.42
7.3.200.0170.00016.64
7.3.190.0090.00916.61
7.3.180.0060.00916.45
7.3.170.0070.01416.55
7.3.160.0040.01216.38
7.3.130.0040.00814.80
7.3.120.0020.01514.87
7.3.110.0080.01014.65
7.3.100.0070.00514.89
7.3.90.0020.01314.76
7.3.80.0020.01214.89
7.3.70.0020.00914.59
7.3.60.0040.01114.65
7.3.50.0070.00314.72
7.3.40.0060.00514.82
7.3.30.0020.01114.88
7.3.20.0020.01016.37
7.3.10.0030.01316.56
7.3.00.0080.00516.60
7.2.330.0060.01216.83
7.2.320.0150.00616.75
7.2.310.0090.00916.71
7.2.300.0090.01316.81
7.2.290.0030.01216.55
7.2.260.0100.00714.86
7.2.250.0090.00715.08
7.2.240.0050.01115.02
7.2.230.0080.00815.10
7.2.220.0120.00514.93
7.2.210.0040.00914.91
7.2.200.0080.00814.97
7.2.190.0080.00714.95
7.2.180.0080.00414.91
7.2.170.0060.00615.04
7.2.160.0060.00615.05
7.2.150.0030.00916.94
7.2.140.0000.00916.64
7.2.130.0020.01116.86
7.2.120.0110.00616.94
7.2.110.0050.00816.95
7.2.100.0060.00616.95
7.2.90.0040.00616.94
7.2.80.0020.01317.09
7.2.70.0030.00916.78
7.2.60.0140.00316.70
7.2.50.0060.00716.74
7.2.40.0040.00917.03
7.2.30.0090.00416.81
7.2.20.0040.00716.84
7.2.10.0080.00816.86
7.2.00.0080.00617.72
7.1.330.0090.00415.79
7.1.320.0080.00715.82
7.1.310.0050.00715.75
7.1.300.0030.00615.60
7.1.290.0070.00615.63
7.1.280.0080.00515.67
7.1.270.0040.00815.76
7.1.260.0090.00515.66
7.1.250.0100.00315.59
7.1.240.0020.00815.62
7.1.230.0040.00515.54
7.1.220.0020.01315.74
7.1.210.0030.00715.62
7.1.200.0010.01115.67
7.1.190.0060.00915.50
7.1.180.0070.00315.66
7.1.170.0030.00815.59
7.1.160.0020.00715.71
7.1.150.0060.00615.55
7.1.140.0070.00515.61
7.1.130.0070.00615.78
7.1.120.0050.00615.65
7.1.110.0060.00815.77
7.1.100.0070.00416.34
7.1.90.0100.00515.64
7.1.80.0090.00615.75
7.1.70.0050.00716.05
7.1.60.0080.00617.25
7.1.50.0020.01016.03
7.1.40.0060.00515.62
7.1.30.0040.00415.69
7.1.20.0030.00615.74
7.1.10.0060.00515.85
7.1.00.0010.03317.86
7.0.330.0050.00515.32
7.0.320.0040.00715.27
7.0.310.0070.00515.31
7.0.300.0060.00815.17
7.0.290.0060.00515.41
7.0.280.0070.00415.32
7.0.270.0050.00815.14
7.0.260.0090.00515.24
7.0.250.0060.00515.22
7.0.240.0050.00915.47
7.0.230.0050.00815.26
7.0.220.0030.01115.42
7.0.210.0040.00515.12
7.0.200.0110.01015.54
7.0.190.0020.01015.29
7.0.180.0070.00815.14
7.0.170.0040.00715.35
7.0.160.0020.01015.43
7.0.150.0000.01315.48
7.0.140.0100.00315.42
7.0.130.0080.00315.56
7.0.120.0070.00515.32
7.0.110.0050.00815.40
7.0.100.0030.01015.28
7.0.90.0120.00115.34
7.0.80.0050.00515.19
7.0.70.0080.00615.15
7.0.60.0050.01717.57
7.0.50.0040.02016.19
7.0.40.0080.02615.79
7.0.30.0080.02515.65
7.0.20.0110.02215.83
7.0.10.0080.02815.79
7.0.00.0120.02915.68
5.6.400.0030.01414.07
5.6.390.0030.01014.00
5.6.380.0010.01214.02
5.6.370.0060.00514.20
5.6.360.0080.00614.07
5.6.350.0040.00614.31
5.6.340.0070.00514.21
5.6.330.0060.00614.25
5.6.320.0030.00714.24
5.6.310.0070.00414.13
5.6.300.0040.00514.05
5.6.290.0100.00714.13
5.6.280.0050.03016.52
5.6.270.0040.00614.03
5.6.260.0070.00314.10
5.6.250.0050.00714.14
5.6.240.0030.00814.07
5.6.230.0050.00314.09
5.6.220.0010.01314.14
5.6.210.0080.03116.22
5.6.200.0060.03315.35
5.6.190.0180.02716.23
5.6.180.0080.02516.20
5.6.170.0130.02016.14
5.6.160.0070.02516.14
5.6.150.0120.02216.28
5.6.140.0120.02316.21
5.6.130.0120.02216.16
5.6.120.0080.02316.11
5.6.110.0070.02416.14
5.6.100.0190.01716.22
5.6.90.0180.02016.10
5.6.80.0160.01916.05
5.6.70.0170.02115.90
5.6.60.0080.02415.88
5.6.50.0070.02315.82
5.6.40.0060.02715.87
5.6.30.0090.02315.99
5.6.20.0080.02715.96
5.6.10.0120.02415.89
5.6.00.0090.02615.95
5.5.380.0090.00212.56
5.5.370.0050.00512.57
5.5.360.0030.00712.71
5.5.350.0100.03115.05
5.5.340.0030.02014.44
5.5.330.0090.02415.16
5.5.320.0110.01715.18
5.5.310.0020.02715.15
5.5.300.0120.02015.07
5.5.290.0150.02115.09
5.5.280.0050.02314.91
5.5.270.0060.02414.94
5.5.260.0140.02515.08
5.5.250.0160.02115.01
5.5.240.0140.02314.72
5.5.230.0130.02214.88
5.5.220.0180.02014.84
5.5.210.0110.01914.96
5.5.200.0100.02114.69
5.5.190.0090.02214.82
5.5.180.0100.02014.79
5.5.170.0060.00612.40
5.5.160.0110.02514.79
5.5.150.0040.02714.79
5.5.140.0110.02314.81
5.5.130.0080.02414.82
5.5.120.0130.03014.85
5.5.110.0090.02114.83
5.5.100.0080.02514.77
5.5.90.0100.02214.88
5.5.80.0110.02014.73
5.5.70.0070.02514.82
5.5.60.0080.02314.79
5.5.50.0120.02014.76
5.5.40.0050.02514.65
5.5.30.0060.02314.78
5.5.20.0100.02314.70
5.5.10.0110.01914.68
5.5.00.0100.02614.75

preferences:
48.37 ms | 401 KiB | 5 Q