3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function __destruct() { throw new Exception('destruct A'); } } class B { private $m; public function __construct() { $this->m = new A(); } public function __destruct() { throw new Exception('destruct B'); } } try { $b = new B(); throw new Exception('throw'); } catch (Exception $e) { echo $e->getMessage(); } ?>

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.40.0070.00718.71
8.3.30.0120.00819.21
8.3.20.0040.00420.04
8.3.10.0070.00023.67
8.3.00.0080.00019.13
8.2.170.0180.00022.96
8.2.160.0150.00020.45
8.2.150.0000.00924.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00422.08
8.2.110.0100.00022.11
8.2.100.0040.00717.80
8.2.90.0000.00918.89
8.2.80.0050.00317.97
8.2.70.0070.00417.63
8.2.60.0090.00019.53
8.2.50.0030.00518.07
8.2.40.0060.00320.07
8.2.30.0070.00019.84
8.2.20.0000.00817.73
8.2.10.0000.00817.93
8.2.00.0030.00617.80
8.1.270.0000.00823.88
8.1.260.0000.00826.35
8.1.250.0120.00328.09
8.1.240.0030.00623.84
8.1.230.0040.00818.97
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.25
8.1.190.0040.00417.23
8.1.180.0030.00618.10
8.1.170.0080.00018.41
8.1.160.0040.00422.01
8.1.150.0060.00318.64
8.1.140.0000.00717.44
8.1.130.0070.00017.88
8.1.120.0000.00717.37
8.1.110.0070.00017.45
8.1.100.0000.00717.44
8.1.90.0040.00417.35
8.1.80.0030.00317.45
8.1.70.0040.00417.41
8.1.60.0030.00517.64
8.1.50.0000.00917.55
8.1.40.0000.00817.53
8.1.30.0040.00417.61
8.1.20.0000.00817.54
8.1.10.0030.00617.43
8.1.00.0030.00517.49
8.0.300.0000.00718.77
8.0.290.0000.00717.04
8.0.280.0000.00818.38
8.0.270.0030.00317.18
8.0.260.0000.00617.26
8.0.250.0040.00417.08
8.0.240.0000.00817.02
8.0.230.0030.00316.83
8.0.220.0000.00716.79
8.0.210.0000.00716.82
8.0.200.0060.00016.94
8.0.190.0090.00016.98
8.0.180.0040.00416.80
8.0.170.0030.00516.83
8.0.160.0000.00816.86
8.0.150.0070.00016.90
8.0.140.0040.00416.82
8.0.130.0050.00013.46
8.0.120.0040.00416.81
8.0.110.0040.00416.88
8.0.100.0000.00816.96
8.0.90.0000.00717.02
8.0.80.0060.00916.95
8.0.70.0000.00716.88
8.0.60.0040.00416.91
8.0.50.0000.00716.91
8.0.30.0100.01217.10
8.0.20.0050.01317.40
8.0.10.0040.00417.17
8.0.00.0070.01016.71
7.4.330.0030.00315.05
7.4.320.0000.00716.48
7.4.300.0000.00716.49
7.4.290.0070.00016.48
7.4.280.0000.00716.41
7.4.270.0040.00416.54
7.4.260.0070.00016.55
7.4.250.0050.00316.54
7.4.240.0050.00216.63
7.4.230.0070.00016.62
7.4.220.0150.00416.44
7.4.210.0080.01116.50
7.4.200.0030.00316.52
7.4.190.0070.00016.66
7.4.160.0170.00616.41
7.4.150.0100.00717.40
7.4.140.0080.01217.86
7.4.130.0120.00516.56
7.4.120.0100.01016.56
7.4.110.0050.01416.57
7.4.100.0100.01016.63
7.4.90.0140.00316.57
7.4.80.0110.01119.39
7.4.70.0090.00616.43
7.4.60.0110.00716.56
7.4.50.0040.00416.18
7.4.40.0070.01022.77
7.4.30.0060.00916.56
7.4.00.0070.00714.84
7.3.330.0050.00013.30
7.3.320.0000.00513.36
7.3.310.0000.00716.38
7.3.300.0000.00616.36
7.3.290.0030.01216.35
7.3.280.0080.00816.36
7.3.270.0090.01617.40
7.3.260.0150.00916.38
7.3.250.0110.00616.44
7.3.240.0060.00916.52
7.3.230.0100.00616.48
7.3.210.0110.00716.29
7.3.200.0060.01319.39
7.3.190.0140.00316.58
7.3.180.0150.00016.32
7.3.170.0040.01216.44
7.3.160.0140.00416.31
7.3.120.0060.00615.05
7.3.110.0110.00714.75
7.3.100.0060.01014.83
7.3.90.0080.00814.75
7.3.80.0000.00914.85
7.3.70.0090.00614.62
7.3.60.0040.01114.82
7.3.50.0040.01114.46
7.3.40.0100.00614.69
7.3.30.0060.00614.95
7.3.20.0000.01516.56
7.3.10.0050.00916.40
7.3.00.0080.00816.50
7.2.330.0100.01316.77
7.2.320.0080.00816.71
7.2.310.0110.00716.60
7.2.300.0040.01316.72
7.2.290.0090.00816.49
7.2.240.0040.00714.86
7.2.230.0080.00814.66
7.2.220.0120.00615.03
7.2.210.0000.01114.85
7.2.200.0060.00315.20
7.2.190.0090.00915.11
7.2.180.0000.01814.91
7.2.170.0040.01115.14
7.2.160.0070.00715.24
7.2.150.0100.00717.07
7.2.140.0000.01517.01
7.2.130.0050.00816.68
7.2.120.0080.00616.98
7.2.110.0090.00716.80
7.2.100.0060.00816.88
7.2.90.0080.00716.79
7.2.80.0060.00916.84
7.2.70.0040.00916.76
7.2.60.0050.00816.79
7.2.50.0090.00716.87
7.2.40.0070.00916.99
7.2.30.0030.01016.86
7.2.20.0080.00516.77
7.2.10.0130.00516.86
7.2.00.0070.00717.70
7.1.330.0090.00915.41
7.1.320.0120.00015.48
7.1.310.0040.00715.41
7.1.300.0030.01315.65
7.1.290.0040.01115.61
7.1.280.0040.00715.69
7.1.270.0100.00715.50
7.1.260.0100.00715.51
7.1.250.0080.00915.51
7.1.200.0060.00515.52
7.1.100.0040.00818.00
7.1.70.0030.00616.82
7.1.60.0100.01619.46
7.1.50.0170.00316.79
7.1.00.0070.07322.36
7.0.200.0200.00314.76
7.0.140.0000.07722.18
7.0.60.0100.06019.86
7.0.50.0200.06717.95
7.0.40.0030.08020.26
7.0.30.0230.04320.16
7.0.20.0270.07020.10
7.0.10.0100.07320.06
7.0.00.0100.04320.06
5.6.280.0070.07021.10
5.6.210.0030.08720.65
5.6.200.0070.06718.22
5.6.190.0130.06720.40
5.6.180.0070.05020.61
5.6.170.0270.05320.71
5.6.160.0070.07020.54
5.6.150.0200.06018.15
5.6.140.0170.06718.14
5.6.130.0070.07718.19
5.6.120.0070.04321.03
5.6.110.0070.08321.14
5.6.100.0100.04021.01
5.6.90.0070.08720.93
5.6.80.0230.06020.29
5.5.350.0000.08720.50
5.5.340.0130.03718.02
5.5.330.0070.07720.40
5.5.320.0330.04320.36
5.5.310.0230.08320.52
5.5.300.0070.08017.94
5.5.290.0070.08717.95
5.5.280.0130.04020.85
5.5.270.0030.04320.80
5.5.260.0130.08020.74
5.5.250.0070.03720.78
5.5.240.0270.07720.05
5.4.450.0730.05719.54
5.4.440.0800.05319.34
5.4.430.0100.06019.68
5.4.420.0830.07019.33
5.4.410.0670.05019.46
5.4.400.0900.06018.85
5.4.390.0570.06718.86
5.4.380.0230.06318.74
5.4.370.0730.05718.53
5.4.360.0370.05018.63
5.4.350.0330.05718.82
5.4.340.0370.05318.46
5.4.320.0050.03612.50
5.4.310.0060.03612.50
5.4.300.0030.04012.51
5.4.290.0130.05012.48
5.4.280.0100.05812.39
5.4.270.0120.05512.38
5.4.260.0100.05312.38
5.4.250.0190.05912.38
5.4.240.0080.06012.39
5.4.230.0090.05612.37
5.4.220.0070.05812.38
5.4.210.0110.04912.38
5.4.200.0070.05512.38
5.4.190.0070.05312.37
5.4.180.0090.05112.38
5.4.170.0100.04912.39
5.4.160.0060.03712.38
5.4.150.0080.03712.37
5.4.140.0090.04312.06
5.4.130.0130.03512.04
5.4.120.0070.03712.01
5.4.110.0050.03812.00
5.4.100.0070.03512.00
5.4.90.0090.03912.00
5.4.80.0110.05512.00
5.4.70.0070.05312.00
5.4.60.0120.04812.00
5.4.50.0090.06312.00
5.4.40.0060.05311.99
5.4.30.0110.04911.98
5.4.20.0080.05111.98
5.4.10.0070.05211.98
5.4.00.0090.05111.47
5.3.290.0090.03912.80
5.3.280.0060.05312.71
5.3.270.0110.05212.72
5.3.260.0110.05012.72
5.3.250.0170.05612.72
5.3.240.0120.05512.72
5.3.230.0050.06812.71
5.3.220.0120.06912.68
5.3.210.0070.06312.68
5.3.200.0090.05012.68
5.3.190.0080.06712.68
5.3.180.0120.06512.68
5.3.170.0090.04512.67
5.3.160.0080.06312.68
5.3.150.0130.05212.68
5.3.140.0140.05212.66
5.3.130.0080.05912.65
5.3.120.0080.05612.66
5.3.110.0090.03912.66
5.3.100.0120.04212.12
5.3.90.0100.04612.11
5.3.80.0060.03812.10
5.3.70.0160.03212.10
5.3.60.0070.04112.08
5.3.50.0050.03912.04
5.3.40.0120.03612.04
5.3.30.0140.06111.98
5.3.20.0070.04911.77
5.3.10.0060.03711.73
5.3.00.0090.03311.73
5.2.170.0030.0329.23
5.2.160.0140.0459.23
5.2.150.0050.0439.23
5.2.140.0030.0359.23
5.2.130.0060.0289.19
5.2.120.0020.0319.19
5.2.110.0050.0309.20
5.2.100.0090.0249.19
5.2.90.0050.0299.19
5.2.80.0060.0449.18
5.2.70.0080.0439.18
5.2.60.0060.0329.13
5.2.50.0090.0399.11
5.2.40.0070.0289.08
5.2.30.0020.0349.05
5.2.20.0040.0359.04
5.2.10.0060.0358.95
5.2.00.0040.0528.81
5.1.60.0070.0308.09
5.1.50.0080.0298.09
5.1.40.0070.0478.08
5.1.30.0150.0608.42
5.1.20.0050.0308.45
5.1.10.0050.0378.17
5.1.00.0060.0368.17
5.0.50.0050.0286.65
5.0.40.0090.0256.51
5.0.30.0040.0366.33
5.0.20.0050.0196.29
5.0.10.0030.0216.21
5.0.00.0050.0296.21
4.4.90.0040.0144.78
4.4.80.0050.0134.76
4.4.70.0020.0164.76
4.4.60.0030.0154.76
4.4.50.0010.0174.77
4.4.40.0020.0254.71
4.4.30.0030.0164.76
4.4.20.0020.0164.84
4.4.10.0050.0144.85
4.4.00.0020.0294.76
4.3.110.0030.0164.67
4.3.100.0010.0174.66
4.3.90.0030.0154.64
4.3.80.0030.0254.58
4.3.70.0000.0184.63
4.3.60.0030.0154.63
4.3.50.0030.0234.63
4.3.40.0030.0374.54
4.3.30.0040.0213.30
4.3.20.0030.0193.28
4.3.10.0040.0173.24
4.3.00.0030.01310.55

preferences:
47.02 ms | 400 KiB | 5 Q