3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $m; 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 { try { { $b = new B(); try { $b->abc(); } catch (Exception $e) { echo $e->getMessage(); } # unset($b); } } catch (Exception $e) { echo $e->getMessage(); } } 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.00716.50
8.3.50.0070.01022.07
8.3.40.0090.00618.70
8.3.30.0140.00019.04
8.3.20.0040.00420.04
8.3.10.0040.00423.66
8.3.00.0040.00419.38
8.2.180.0110.00418.42
8.2.170.0090.00922.96
8.2.160.0070.01020.38
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0060.00326.16
8.2.120.0030.00622.32
8.2.110.0090.00021.93
8.2.100.0070.00417.71
8.2.90.0050.00519.05
8.2.80.0030.00517.97
8.2.70.0070.00417.63
8.2.60.0030.00519.60
8.2.50.0000.00818.07
8.2.40.0040.00419.94
8.2.30.0040.00419.75
8.2.20.0000.00817.86
8.2.10.0040.00418.06
8.2.00.0100.00317.79
8.1.280.0060.00925.92
8.1.270.0090.00023.96
8.1.260.0030.00526.35
8.1.250.0000.00728.09
8.1.240.0000.00923.79
8.1.230.0060.00619.15
8.1.220.0000.00817.74
8.1.210.0000.00918.77
8.1.200.0000.00817.48
8.1.190.0040.00417.35
8.1.180.0000.00918.10
8.1.170.0060.00318.58
8.1.160.0000.00722.05
8.1.150.0050.00418.65
8.1.140.0000.00717.45
8.1.130.0000.00717.82
8.1.120.0030.00317.48
8.1.110.0050.00217.46
8.1.100.0040.00417.48
8.1.90.0040.00417.43
8.1.80.0070.00017.49
8.1.70.0000.00817.45
8.1.60.0060.00317.63
8.1.50.0000.00817.47
8.1.40.0030.00517.51
8.1.30.0030.00517.49
8.1.20.0000.00817.73
8.1.10.0040.00417.46
8.1.00.0030.00617.58
8.0.300.0080.00018.77
8.0.290.0040.00417.18
8.0.280.0030.00518.48
8.0.270.0040.00417.21
8.0.260.0000.00717.17
8.0.250.0070.00017.06
8.0.240.0040.00416.98
8.0.230.0030.00316.81
8.0.220.0030.00316.91
8.0.210.0000.00716.93
8.0.200.0040.00416.93
8.0.190.0030.00516.87
8.0.180.0000.00716.92
8.0.170.0050.00316.94
8.0.160.0040.00416.89
8.0.150.0040.00417.00
8.0.140.0000.00816.90
8.0.130.0030.00313.32
8.0.120.0000.00816.88
8.0.110.0000.00716.84
8.0.100.0000.00816.86
8.0.90.0000.00916.96
8.0.80.0090.00616.89
8.0.70.0040.00416.86
8.0.60.0000.00717.04
8.0.50.0000.00716.98
8.0.30.0190.00717.08
8.0.20.0090.01017.40
8.0.10.0050.00317.11
8.0.00.0060.01216.71
7.4.330.0000.00515.09
7.4.320.0030.00316.51
7.4.300.0000.00616.59
7.4.290.0070.00016.49
7.4.280.0000.00816.52
7.4.270.0000.00816.49
7.4.260.0050.00216.50
7.4.250.0070.00016.47
7.4.240.0070.00016.46
7.4.230.0000.00716.41
7.4.220.0140.00316.64
7.4.210.0090.00716.50
7.4.200.0040.00416.42
7.4.190.0040.00416.46
7.4.160.0120.00416.59
7.4.150.0120.00617.40
7.4.140.0080.01017.86
7.4.130.0100.00616.58
7.4.120.0090.00816.55
7.4.110.0140.00616.45
7.4.100.0140.00316.48
7.4.90.0100.00716.59
7.4.80.0130.00919.39
7.4.70.0090.00916.28
7.4.60.0030.01516.32
7.4.50.0000.00916.50
7.4.40.0060.00622.77
7.4.30.0090.00616.46
7.4.00.0020.01414.88
7.3.330.0050.00013.39
7.3.320.0050.00013.29
7.3.310.0070.00016.39
7.3.300.0070.00016.41
7.3.290.0130.00816.37
7.3.280.0090.00816.34
7.3.270.0110.00717.40
7.3.260.0120.01216.36
7.3.250.0090.00816.50
7.3.240.0080.00816.38
7.3.230.0140.00616.62
7.3.210.0060.01016.52
7.3.200.0180.00619.39
7.3.190.0090.00916.36
7.3.180.0060.00916.54
7.3.170.0110.01116.46
7.3.160.0040.01516.42
7.3.120.0070.01114.66
7.3.110.0030.01314.59
7.3.100.0000.01214.68
7.3.90.0040.01214.83
7.3.80.0000.01714.77
7.3.70.0070.01014.63
7.3.60.0040.00814.86
7.3.50.0000.01414.63
7.3.40.0110.00014.89
7.3.30.0100.00314.73
7.3.20.0030.01416.66
7.3.10.0100.00316.35
7.3.00.0040.00416.76
7.2.330.0100.01316.77
7.2.320.0110.00816.48
7.2.310.0060.01216.67
7.2.300.0100.00716.80
7.2.290.0030.01316.77
7.2.250.0130.00714.89
7.2.240.0000.01615.15
7.2.230.0060.00915.20
7.2.220.0030.01015.24
7.2.210.0060.01215.32
7.2.200.0070.00715.18
7.2.190.0060.00914.95
7.2.180.0060.01015.13
7.2.170.0040.01515.16
7.2.60.0030.01017.06
7.1.330.0030.01415.54
7.1.320.0030.00915.71
7.1.310.0030.01215.69
7.1.300.0140.00315.56
7.1.290.0030.01015.73
7.1.280.0070.01015.89
7.1.270.0090.00615.68
7.1.260.0060.00315.54
7.1.200.0090.00315.81
7.1.70.0000.01416.73
7.1.60.0100.01419.46
7.1.50.0090.01216.83
7.1.00.0070.07322.30
7.0.200.0260.00714.66
7.0.140.0030.07722.10
7.0.60.0070.09319.93
7.0.50.0070.05717.92
7.0.40.0030.09320.15
7.0.30.0170.04020.26
7.0.20.0270.05020.26
7.0.10.0270.07020.22
7.0.00.0100.08720.07
5.6.210.0030.08720.52
5.6.200.0100.08018.16
5.6.190.0100.08720.48
5.6.180.0270.08020.48
5.6.170.0270.08020.46
5.6.160.0100.08320.55
5.6.150.0030.08018.30
5.6.140.0030.07718.18
5.6.130.0030.04018.18
5.6.120.0100.08321.02
5.6.110.0170.07321.09
5.6.100.0070.08321.05
5.6.90.0070.08321.08
5.6.80.0000.08320.52
5.6.70.4430.04020.48
5.5.350.0070.06320.39
5.5.340.0070.03717.95
5.5.330.0070.09320.29
5.5.320.0370.07020.25
5.5.310.0170.04020.27
5.5.300.0130.07717.98
5.5.290.0070.07317.95
5.5.280.0130.04320.80
5.5.270.0070.07720.87
5.5.260.0170.08020.84
5.5.250.0170.07320.64
5.5.240.0130.08320.23
5.4.450.0830.05319.29
5.4.440.0830.06019.41
5.4.430.0570.05319.11
5.4.420.0970.06019.39
5.4.410.0870.06319.31
5.4.400.0770.06019.09
5.4.390.0130.05719.12
5.4.380.0300.05018.73
5.4.370.0300.05718.75
5.4.360.0230.06018.53
5.4.350.0300.06018.78
5.4.340.0500.05718.74
5.4.320.0060.03512.50
5.4.310.0060.04612.50
5.4.300.0090.03712.50
5.4.290.0130.04012.48
5.4.280.0120.04912.38
5.4.270.0120.04412.38
5.4.260.0070.04112.38
5.4.250.0060.04012.38
5.4.240.0070.03812.38
5.4.230.0090.04012.38
5.4.220.0060.03612.38
5.4.210.0070.03512.38
5.4.200.0050.03812.37
5.4.190.0080.03412.38
5.4.180.0050.03812.38
5.4.170.0080.03512.38
5.4.160.0070.03512.38
5.4.150.0040.03812.38
5.4.140.0040.03812.06
5.4.130.0040.04012.05
5.4.120.0080.03512.00
5.4.110.0040.05212.00
5.4.100.0040.03712.00
5.4.90.0110.03312.00
5.4.80.0070.03812.00
5.4.70.0070.03712.00
5.4.60.0120.04712.00
5.4.50.0080.04912.00
5.4.40.0100.03311.99
5.4.30.0080.03211.98
5.4.20.0060.03411.98
5.4.10.0070.03311.98
5.4.00.0070.03411.47
5.3.290.0050.03912.80
5.3.280.0060.03712.71
5.3.270.0060.03812.72
5.3.260.0060.03912.72
5.3.250.0100.04112.72
5.3.240.0060.04512.72
5.3.230.0080.04812.71
5.3.220.0080.04212.68
5.3.210.0110.04712.68
5.3.200.0090.06412.68
5.3.190.0170.07212.68
5.3.180.0120.04612.67
5.3.170.0060.04712.67
5.3.160.0140.05812.67
5.3.150.0070.04312.67
5.3.140.0090.05912.66
5.3.130.0140.06112.65
5.3.120.0120.06812.66
5.3.110.0120.05912.66
5.3.100.0080.05612.13
5.3.90.0050.06412.11
5.3.80.0060.05512.10
5.3.70.0080.05112.10
5.3.60.0140.04812.09
5.3.50.0080.04312.04
5.3.40.0070.03712.04
5.3.30.0090.03211.99
5.3.20.0070.03511.77
5.3.10.0050.03611.73
5.3.00.0080.03511.72
5.2.170.0040.0329.23
5.2.160.0070.0289.23
5.2.150.0040.0339.23
5.2.140.0050.0329.23
5.2.130.0070.0419.19
5.2.120.0020.0319.19
5.2.110.0070.0269.20
5.2.100.0060.0279.19
5.2.90.0110.0249.19
5.2.80.0060.0349.19
5.2.70.0070.0399.18
5.2.60.0050.0319.13
5.2.50.0080.0319.11
5.2.40.0070.0309.08
5.2.30.0030.0369.06
5.2.20.0070.0289.04
5.2.10.0050.0298.95
5.2.00.0060.0298.82
5.1.60.0080.0228.09
5.1.50.0060.0258.09
5.1.40.0030.0268.07
5.1.30.0070.0248.43
5.1.20.0060.0278.45
5.1.10.0060.0278.17
5.1.00.0040.0288.17
5.0.50.0050.0286.66
5.0.40.0040.0186.51
5.0.30.0020.0346.32
5.0.20.0050.0186.29
5.0.10.0020.0216.27
5.0.00.0040.0306.26
4.4.90.0040.0194.78
4.4.80.0000.0264.76
4.4.70.0060.0234.75
4.4.60.0070.0144.75
4.4.50.0030.0164.77
4.4.40.0040.0264.71
4.4.30.0060.0194.75
4.4.20.0040.0164.84
4.4.10.0040.0164.84
4.4.00.0030.0264.76
4.3.110.0050.0144.67
4.3.100.0040.0144.66
4.3.90.0030.0164.63
4.3.80.0060.0254.59
4.3.70.0040.0174.63
4.3.60.0020.0184.63
4.3.50.0020.0184.63
4.3.40.0050.0224.54
4.3.30.0040.0223.30
4.3.20.0030.0263.28
4.3.10.0070.0223.23
4.3.00.0300.01310.55

preferences:
43.37 ms | 401 KiB | 5 Q