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(); } 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.60.0070.01416.75
8.3.50.0060.01222.11
8.3.40.0060.00918.98
8.3.30.0140.00319.18
8.3.20.0030.00620.29
8.3.10.0040.00423.36
8.3.00.0000.00819.38
8.2.180.0060.00918.29
8.2.170.0070.01122.96
8.2.160.0120.00920.39
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0120.00326.16
8.2.120.0040.00422.16
8.2.110.0070.00322.05
8.2.100.0080.00417.91
8.2.90.0040.00419.22
8.2.80.0000.00817.97
8.2.70.0060.00317.50
8.2.60.0060.00317.91
8.2.50.0060.00318.07
8.2.40.0040.00419.76
8.2.30.0060.00319.79
8.2.20.0080.00017.59
8.2.10.0000.00717.96
8.2.00.0060.00317.66
8.1.280.0110.00425.92
8.1.270.0040.00423.82
8.1.260.0060.00326.35
8.1.250.0110.00428.09
8.1.240.0100.00023.97
8.1.230.0080.00417.51
8.1.220.0090.00017.75
8.1.210.0030.00518.77
8.1.200.0070.00317.35
8.1.190.0030.00517.35
8.1.180.0070.00318.10
8.1.170.0060.00318.64
8.1.160.0030.00721.96
8.1.150.0080.00018.63
8.1.140.0070.00017.41
8.1.130.0030.00317.87
8.1.120.0000.00717.39
8.1.110.0050.00217.47
8.1.100.0070.00017.37
8.1.90.0070.00017.45
8.1.80.0000.00817.50
8.1.70.0070.00017.45
8.1.60.0090.00017.55
8.1.50.0000.00817.41
8.1.40.0000.00917.40
8.1.30.0090.00017.48
8.1.20.0040.00417.52
8.1.10.0040.00417.46
8.1.00.0000.00817.49
8.0.300.0040.00418.77
8.0.290.0050.00316.75
8.0.280.0030.00318.34
8.0.270.0070.00017.11
8.0.260.0030.00317.20
8.0.250.0070.00016.99
8.0.240.0080.00016.87
8.0.230.0030.00316.95
8.0.220.0030.00316.75
8.0.210.0000.00716.89
8.0.200.0000.00716.93
8.0.190.0030.00616.94
8.0.180.0070.00016.95
8.0.170.0000.00816.88
8.0.160.0050.00216.83
8.0.150.0000.00716.87
8.0.140.0000.00716.82
8.0.130.0070.00013.37
8.0.120.0020.00516.80
8.0.110.0030.00516.99
8.0.100.0050.00317.00
8.0.90.0030.00517.06
8.0.80.0070.00716.86
8.0.70.0050.00216.83
8.0.60.0000.00816.85
8.0.50.0040.00417.00
8.0.30.0100.01116.96
8.0.20.0060.01217.40
8.0.10.0080.00017.04
8.0.00.0130.00716.80
7.4.330.0050.00015.14
7.4.320.0000.00616.64
7.4.300.0000.00616.43
7.4.290.0030.00316.59
7.4.280.0000.00716.50
7.4.270.0030.00316.61
7.4.260.0000.00716.50
7.4.250.0060.00316.46
7.4.240.0060.00116.52
7.4.230.0000.00716.68
7.4.220.0070.01016.65
7.4.210.0060.01316.52
7.4.200.0070.00016.40
7.4.190.0040.00416.75
7.4.160.0100.01016.63
7.4.150.0070.01017.40
7.4.140.0080.01017.86
7.4.130.0130.00616.57
7.4.120.0120.00616.73
7.4.110.0060.00916.48
7.4.100.0100.00916.54
7.4.90.0100.00716.71
7.4.80.0180.00619.39
7.4.70.0100.01016.69
7.4.60.0150.00716.54
7.4.50.0030.00616.49
7.4.40.0110.00722.77
7.4.30.0090.00916.48
7.4.00.0030.01215.22
7.3.330.0030.00313.19
7.3.320.0060.00013.28
7.3.310.0000.00816.42
7.3.300.0070.00016.26
7.3.290.0110.01116.39
7.3.280.0090.00816.37
7.3.270.0070.01117.40
7.3.260.0070.01116.59
7.3.250.0100.00816.48
7.3.240.0060.01016.20
7.3.230.0060.01216.39
7.3.210.0090.00916.52
7.3.200.0070.01119.39
7.3.190.0060.01216.27
7.3.180.0060.00916.34
7.3.170.0120.00416.39
7.3.160.0090.00616.38
7.3.120.0070.01014.82
7.2.330.0170.00916.53
7.2.320.0090.00916.43
7.2.310.0150.00716.49
7.2.300.0130.00316.74
7.2.290.0070.01016.79
7.2.60.0080.00516.95
7.1.200.0070.00015.70
7.1.100.0060.00617.83
7.1.70.0040.00417.04
7.1.60.0100.01419.46
7.1.50.0070.01616.95
7.1.00.0030.07722.43
7.0.200.0140.00714.79
7.0.140.0070.06721.97
7.0.60.0070.05719.94
7.0.50.0070.08318.04
7.0.40.0130.08020.21
7.0.30.0170.04720.23
7.0.20.0230.08720.11
7.0.10.0100.04320.13
7.0.00.0170.06720.23
5.6.280.0070.07021.00
5.6.210.0070.07720.48
5.6.200.0070.04718.24
5.6.190.0130.07020.47
5.6.180.0030.06020.58
5.6.170.0170.04020.57
5.6.160.0100.08020.56
5.6.150.0030.04718.16
5.6.140.0030.04018.13
5.6.130.0030.04018.20
5.6.120.0070.06721.04
5.6.110.0170.05721.02
5.6.100.0100.04021.02
5.6.90.0070.08320.88
5.6.80.0100.08020.40
5.6.70.4330.03720.28
5.5.350.0200.03020.33
5.5.340.0100.05717.93
5.5.330.0130.07020.21
5.5.320.0300.04720.24
5.5.310.0270.03720.19
5.5.300.0070.08017.92
5.5.290.0100.04017.95
5.5.280.0130.07720.73
5.5.270.0100.03720.64
5.5.260.0100.07720.90
5.5.250.0030.09020.59
5.5.240.0370.06720.24
5.4.450.0270.04019.55
5.4.440.0300.05019.30
5.4.430.0270.08019.16
5.4.420.0330.04319.31
5.4.410.0330.07019.28
5.4.400.0230.07319.22
5.4.390.0270.04319.09
5.4.380.0230.07319.08
5.4.370.0230.04018.95
5.4.360.0230.07319.10
5.4.350.0270.05719.22
5.4.340.0200.04019.09
5.4.320.0230.03319.06
5.4.310.0270.07018.84
5.4.300.0230.04318.94
5.4.290.0200.04719.08
5.4.280.0230.07319.31
5.4.270.0270.03718.99
5.4.260.0370.06318.98
5.4.250.0200.04319.21
5.4.240.0200.03719.05
5.4.230.0170.03719.21
5.4.220.0230.03018.84
5.4.210.0170.07318.94
5.4.200.0230.03719.21
5.4.190.0200.07719.13
5.4.180.0200.07019.21
5.4.170.0170.05319.20
5.4.160.0130.05019.04
5.4.150.0200.05719.20
5.4.140.0230.03316.55
5.4.130.0130.03716.50
5.4.120.0070.05016.38
5.4.110.0170.06716.59
5.4.100.0230.07016.32
5.4.90.0200.03716.24
5.4.80.0200.04016.39
5.4.70.0270.03716.57
5.4.60.0200.03316.26
5.4.50.0100.05316.54
5.4.40.0130.03716.16
5.4.30.0200.03016.53
5.4.20.0170.03716.42
5.4.10.0130.03716.33
5.4.00.0100.04015.73
5.3.290.0200.03314.67
5.3.280.0070.04314.57
5.3.270.0200.04014.75
5.3.260.0170.04014.53
5.3.250.0230.06314.59
5.3.240.0200.03314.61
5.3.230.0170.03714.50
5.3.220.0130.04014.49
5.3.210.0230.04714.57
5.3.200.0170.03714.65
5.3.190.0230.04014.79
5.3.180.0130.04014.54
5.3.170.0230.03714.64
5.3.160.0270.03314.46
5.3.150.0230.03714.48
5.3.140.0270.03014.57
5.3.130.0230.03314.47
5.3.120.0230.04014.69
5.3.110.0130.05014.45
5.3.100.0170.04014.01
5.3.90.0130.05014.17
5.3.80.0130.04714.00
5.3.70.0230.03014.00
5.3.60.0230.03013.91
5.3.50.0100.03713.96
5.3.40.0030.05013.87
5.3.30.0200.07013.83
5.3.20.0230.03013.62
5.3.10.0130.04013.56
5.3.00.0170.04313.70
5.2.170.0000.04711.16
5.2.160.0000.03011.05
5.2.150.0070.02711.13
5.2.140.1200.03711.23
5.2.130.1300.02011.03
5.2.120.1300.02711.04
5.2.110.1200.03011.25
5.2.100.1130.03311.22
5.2.90.1430.03311.04
5.2.80.1400.03711.07
5.2.70.1600.04011.00
5.2.60.1400.03311.21
5.2.50.1670.03010.95
5.2.40.1230.03011.00
5.2.30.1100.02711.21
5.2.20.1330.04011.19
5.2.10.1230.03710.95
5.2.00.1300.03310.64
5.1.60.1370.0239.93
5.1.50.1100.03010.01
5.1.40.1330.0309.91
5.1.30.1100.03010.35
5.1.20.1200.02310.33
5.1.10.1100.02710.07
5.1.00.1100.0279.96
5.0.50.0630.0208.45
5.0.40.0670.0208.45
5.0.30.0770.0378.45
5.0.20.0870.0238.45
5.0.10.0830.0278.45
5.0.00.0870.0438.45
4.4.90.0770.0178.45
4.4.80.0830.0208.45
4.4.70.0770.0238.45
4.4.60.0800.0278.45
4.4.50.0730.0208.45
4.4.40.0800.0338.45
4.4.30.0770.0238.45
4.4.20.0700.0108.45
4.4.10.0630.0238.45
4.4.00.0030.0538.45
4.3.110.0030.0338.45
4.3.100.0100.0278.45
4.3.90.0000.0378.45
4.3.80.0030.0508.45
4.3.70.0030.0278.45
4.3.60.0030.0338.45
4.3.50.0300.0278.45
4.3.40.0830.0308.45
4.3.30.0370.0208.45
4.3.20.0400.0178.45
4.3.10.0270.0208.45
4.3.00.0370.0278.45

preferences:
48.62 ms | 400 KiB | 5 Q