3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Z { public function __destruct() { throw new Exception('destruct Z'); } } class A { private $m; public function __construct() { $this->m = new Z(); } public function __destruct() { throw new Exception('destruct A'); } } class B { public function abc() { $a = new A(); } public function __destruct() { throw new Exception('destruct B'); } } try { $b = new B(); try { $b->abc(); } catch (Exception $e) { echo $e->getMessage(); } unset($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.0120.00316.50
8.3.50.0150.00821.96
8.3.40.0040.01119.00
8.3.30.0170.00019.13
8.3.20.0000.00720.20
8.3.10.0040.00423.70
8.3.00.0000.00819.50
8.2.180.0160.00016.63
8.2.170.0120.00822.96
8.2.160.0100.00320.38
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00822.25
8.2.110.0030.00721.04
8.2.100.0090.00317.84
8.2.90.0000.00818.16
8.2.80.0000.00817.97
8.2.70.0080.00018.02
8.2.60.0040.00419.53
8.2.50.0060.00318.07
8.2.40.0040.00419.88
8.2.30.0030.00519.85
8.2.20.0030.00517.67
8.2.10.0030.00519.87
8.2.00.0000.01317.72
8.1.280.0070.01425.92
8.1.270.0060.00323.98
8.1.260.0030.00626.35
8.1.250.0070.00028.09
8.1.240.0030.00623.86
8.1.230.0080.00420.95
8.1.220.0040.00417.74
8.1.210.0060.00318.85
8.1.200.0100.00017.22
8.1.190.0030.00517.35
8.1.180.0000.00818.10
8.1.170.0030.00618.50
8.1.160.0070.00022.02
8.1.150.0060.00318.57
8.1.140.0000.00717.45
8.1.130.0070.00017.77
8.1.120.0030.00417.48
8.1.110.0040.00417.43
8.1.100.0040.00417.38
8.1.90.0040.00417.46
8.1.80.0040.00417.32
8.1.70.0070.00017.40
8.1.60.0040.00417.54
8.1.50.0060.00317.41
8.1.40.0020.00517.52
8.1.30.0000.00817.59
8.1.20.0040.00417.54
8.1.10.0000.00817.67
8.1.00.0000.00817.39
8.0.300.0040.00419.98
8.0.290.0000.00716.75
8.0.280.0000.00818.39
8.0.270.0070.00017.13
8.0.260.0000.00817.18
8.0.250.0000.00717.09
8.0.240.0060.00316.96
8.0.230.0040.00416.93
8.0.220.0000.00716.87
8.0.210.0050.00216.80
8.0.200.0000.00616.87
8.0.190.0050.00316.84
8.0.180.0000.00716.87
8.0.170.0040.00416.82
8.0.160.0040.00416.82
8.0.150.0000.00716.98
8.0.140.0040.00416.79
8.0.130.0030.00313.39
8.0.120.0080.00016.95
8.0.110.0000.00716.96
8.0.100.0050.00317.07
8.0.90.0000.00917.01
8.0.80.0070.00716.88
8.0.70.0040.00416.99
8.0.60.0040.00416.93
8.0.50.0050.00216.76
8.0.30.0150.00517.13
8.0.20.0090.00917.40
8.0.10.0070.00017.13
8.0.00.0110.00716.64
7.4.330.0000.00515.10
7.4.320.0000.00616.50
7.4.300.0000.00716.59
7.4.290.0000.00716.59
7.4.280.0040.00416.50
7.4.270.0030.00316.45
7.4.260.0060.00016.54
7.4.250.0040.00416.37
7.4.240.0030.00316.51
7.4.230.0080.00016.62
7.4.220.0030.01416.56
7.4.210.0080.00916.59
7.4.200.0080.00016.68
7.4.190.0030.00516.60
7.4.160.0090.00916.39
7.4.150.0070.01017.40
7.4.140.0140.01017.86
7.4.130.0070.01016.44
7.4.120.0080.01016.47
7.4.110.0090.01016.48
7.4.100.0070.01016.58
7.4.90.0110.00516.38
7.4.80.0070.01119.39
7.4.70.0100.00716.71
7.4.60.0110.00616.37
7.4.50.0030.00616.59
7.4.40.0030.00722.77
7.4.30.0110.00516.62
7.4.00.0000.01514.81
7.3.330.0000.00513.39
7.3.320.0050.00013.39
7.3.310.0070.00016.26
7.3.300.0030.00316.38
7.3.290.0140.01016.38
7.3.280.0120.01016.40
7.3.270.0180.00717.40
7.3.260.0060.01316.47
7.3.250.0150.00616.35
7.3.240.0080.00816.40
7.3.230.0100.00716.57
7.3.210.0100.00716.45
7.3.200.0100.01319.39
7.3.190.0110.00716.61
7.3.180.0160.00016.51
7.3.170.0000.01716.65
7.3.160.0100.01016.41
7.3.120.0000.01414.84
7.3.10.0000.01416.71
7.3.00.0000.00916.50
7.2.330.0090.01216.53
7.2.320.0070.01016.71
7.2.310.0130.00616.64
7.2.300.0160.00016.82
7.2.290.0130.00616.71
7.2.130.0060.00816.97
7.2.120.0090.00917.06
7.2.110.0060.00316.83
7.2.100.0060.00316.68
7.2.90.0070.00716.96
7.2.80.0100.00016.91
7.2.70.0100.00316.96
7.2.60.0080.00817.04
7.2.50.0100.00017.01
7.2.40.0070.00716.91
7.2.30.0030.01016.93
7.2.20.0060.00916.64
7.2.10.0000.01417.01
7.2.00.0060.00817.95
7.1.250.0070.00715.83
7.1.200.0060.00615.73
7.1.100.0070.00718.18
7.1.70.0030.00617.14
7.1.60.0070.01419.46
7.1.50.0100.01016.72
7.1.00.0000.07722.37
7.0.200.0280.00314.68
7.0.140.0030.07022.02
7.0.60.0030.04319.93
7.0.50.0030.06017.75
7.0.40.0000.04720.09
7.0.30.0430.06720.06
7.0.20.0170.04020.07
7.0.10.0030.09320.33
7.0.00.0030.08020.16
5.6.280.0100.06720.87
5.6.210.0070.08320.51
5.6.200.0130.07718.27
5.6.190.0070.04020.46
5.6.180.0200.04020.57
5.6.170.0200.06020.57
5.6.160.0170.08020.54
5.6.150.0100.03318.14
5.6.140.0100.07718.21
5.6.130.0170.07018.29
5.6.120.0170.08020.90
5.6.110.0030.09321.13
5.6.100.0070.04020.96
5.6.90.0000.04720.99
5.6.80.0070.06020.43
5.5.350.0000.08320.41
5.5.340.0030.04318.09
5.5.330.0000.05020.42
5.5.320.0300.04320.38
5.5.310.0170.04020.35
5.5.300.0000.08717.97
5.5.290.0070.04717.95
5.5.280.0070.04020.77
5.5.270.0070.07320.77
5.5.260.0130.05720.66
5.5.250.0030.05720.69
5.5.240.4100.03020.26
5.4.450.3600.03319.30
5.4.440.0030.04019.46
5.4.430.1300.03319.38
5.4.420.2430.03719.38
5.4.410.2600.03719.09
5.4.400.2000.03318.99
5.4.390.3330.03719.02
5.4.380.3830.04019.14
5.4.370.3800.03019.09
5.4.360.3400.02719.09
5.4.350.3470.03718.98
5.4.340.3900.03019.14
5.4.320.4130.03319.05
5.4.310.4700.03319.13
5.4.300.4430.03719.13
5.4.290.4570.03318.90
5.4.280.4430.04018.99
5.4.270.4430.04718.96
5.4.260.4070.04018.89
5.4.250.4130.03318.88
5.4.240.3770.03318.89
5.4.230.4030.04018.98
5.4.220.4130.03319.00
5.4.210.4370.04018.88
5.4.200.4030.04018.90
5.4.190.4130.04019.04
5.4.180.4000.03319.13
5.4.170.3730.03718.89
5.4.160.3930.04018.96
5.4.150.3700.04719.09
5.4.140.4300.03316.38
5.4.130.4370.03016.48
5.4.120.4470.03316.33
5.4.110.3970.03716.21
5.4.100.3870.03716.57
5.4.90.3600.04016.45
5.4.80.4130.03716.48
5.4.70.3800.04016.48
5.4.60.3900.03716.39
5.4.50.4200.03016.19
5.4.40.3630.04016.30
5.4.30.4170.03716.43
5.4.20.4400.03316.39
5.4.10.3900.04316.42
5.4.00.4100.03015.83
5.3.290.4000.03314.82
5.3.280.4200.03714.64
5.3.270.3830.03314.77
5.3.260.3930.03714.53
5.3.250.3870.03714.69
5.3.240.3630.03314.64
5.3.230.4800.03714.60
5.3.220.4400.03314.52
5.3.210.4100.03714.46
5.3.200.4030.03714.58
5.3.190.4070.03714.57
5.3.180.3630.04014.60
5.3.170.3800.03314.61
5.3.160.3830.03714.58
5.3.150.3930.06314.73
5.3.140.3830.03014.45
5.3.130.3530.03714.63
5.3.120.3700.03714.71
5.3.110.3570.03314.61
5.3.100.4070.04314.04
5.3.90.4800.03714.02
5.3.80.4100.03713.98
5.3.70.3770.03714.03
5.3.60.3930.03314.16
5.3.50.3600.03714.01
5.3.40.4530.03713.96
5.3.30.4800.03713.87
5.3.20.4870.03713.70
5.3.10.2900.02713.55
5.3.00.4200.04313.79
5.2.170.3770.03011.22
5.2.160.4000.03011.13
5.2.150.3700.02311.21
5.2.140.3770.03311.12
5.2.130.2630.02711.13
5.2.120.1470.03011.01
5.2.110.2400.02311.07
5.2.100.2300.03311.17
5.2.90.2430.02711.19
5.2.80.2530.03011.06
5.2.70.2930.03311.18
5.2.60.2070.02711.20
5.2.50.2600.03311.02
5.2.40.2430.02011.01
5.2.30.2530.02710.98
5.2.20.1970.03010.98
5.2.10.1600.03010.87
5.2.00.1800.03310.79
5.1.60.2100.02310.08
5.1.50.1630.02710.01
5.1.40.2470.02710.01
5.1.30.2430.02710.40
5.1.20.2530.02010.41
5.1.10.2730.02310.08
5.1.00.2370.02310.09
5.0.50.1900.0208.72
5.0.40.1470.0238.45
5.0.30.1500.0308.16
5.0.20.1530.0208.22
5.0.10.1870.0208.14
5.0.00.1770.0308.32
4.4.90.0600.0105.90
4.4.80.0870.0105.78
4.4.70.1200.0135.89
4.4.60.1270.0175.83
4.4.50.0930.0175.84
4.4.40.1000.0305.82
4.4.30.1330.0135.81
4.4.20.1430.0175.90
4.4.10.1770.0175.87
4.4.00.1730.0275.86
4.3.110.1530.0135.70
4.3.100.1670.0175.76
4.3.90.1870.0135.83
4.3.80.1600.0205.79
4.3.70.1830.0135.71
4.3.60.0000.0275.73
4.3.50.0030.0235.66
4.3.40.0000.0275.68
4.3.30.0030.0205.14
4.3.20.0030.0275.15
4.3.10.0000.0205.15
4.3.00.0070.0135.16

preferences:
48.47 ms | 401 KiB | 5 Q