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 { try { $b = new B(); $b->abc(); 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.40.0040.01118.76
8.3.30.0140.00719.25
8.3.20.0000.00820.20
8.3.10.0050.00323.65
8.3.00.0050.00319.38
8.2.170.0140.00722.96
8.2.160.0070.01020.27
8.2.150.0070.00724.18
8.2.140.0080.00024.66
8.2.130.0110.00326.16
8.2.120.0000.00722.09
8.2.110.0040.00422.26
8.2.100.0130.00318.03
8.2.90.0000.00819.22
8.2.80.0000.00817.97
8.2.70.0100.00317.88
8.2.60.0050.00218.05
8.2.50.0000.00818.07
8.2.40.0040.00419.87
8.2.30.0040.00419.72
8.2.20.0000.00817.63
8.2.10.0070.00019.77
8.2.00.0070.00417.62
8.1.270.0060.00323.94
8.1.260.0040.00426.35
8.1.250.0000.01428.09
8.1.240.0060.00323.79
8.1.230.0000.01119.14
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0000.00817.22
8.1.180.0040.00418.10
8.1.170.0030.00620.39
8.1.160.0000.00722.03
8.1.150.0000.01118.57
8.1.140.0040.00417.44
8.1.130.0000.00717.83
8.1.120.0040.00417.51
8.1.110.0040.00417.38
8.1.100.0070.00017.37
8.1.90.0050.00317.38
8.1.80.0080.00017.50
8.1.70.0000.00717.43
8.1.60.0050.00317.58
8.1.50.0040.00417.50
8.1.40.0050.00317.42
8.1.30.0030.00617.61
8.1.20.0030.00517.51
8.1.10.0000.00717.47
8.1.00.0040.00417.43
8.0.300.0040.00420.80
8.0.290.0070.00017.28
8.0.280.0000.00818.44
8.0.270.0000.00817.18
8.0.260.0000.00617.26
8.0.250.0000.00717.05
8.0.240.0000.00716.92
8.0.230.0000.00816.84
8.0.220.0040.00416.91
8.0.210.0000.00716.75
8.0.200.0060.00016.95
8.0.190.0060.00317.00
8.0.180.0040.00416.97
8.0.170.0000.00816.93
8.0.160.0080.00016.85
8.0.150.0070.00016.75
8.0.140.0000.00816.82
8.0.130.0030.00313.32
8.0.120.0020.00516.95
8.0.110.0000.00816.92
8.0.100.0090.00016.92
8.0.90.0040.00417.00
8.0.80.0060.00916.88
8.0.70.0040.00416.86
8.0.60.0070.00016.98
8.0.50.0000.00717.07
8.0.30.0040.01517.08
8.0.20.0080.01217.40
8.0.10.0030.00617.11
8.0.00.0130.00516.99
7.4.330.0020.00215.08
7.4.320.0000.00616.60
7.4.300.0060.00016.51
7.4.290.0030.00616.61
7.4.280.0040.00416.52
7.4.270.0040.00416.58
7.4.260.0000.00616.48
7.4.250.0040.00416.55
7.4.240.0000.00716.52
7.4.230.0030.00316.50
7.4.220.0060.01216.54
7.4.210.0070.01116.53
7.4.200.0070.00016.66
7.4.190.0030.00316.46
7.4.160.0170.00316.35
7.4.150.0090.00917.40
7.4.140.0160.00417.86
7.4.130.0140.00316.54
7.4.120.0120.00616.63
7.4.110.0100.00716.57
7.4.100.0100.00716.55
7.4.90.0030.01416.35
7.4.80.0120.01219.39
7.4.70.0130.00216.67
7.4.60.0110.00616.44
7.4.50.0000.00816.51
7.4.40.0090.00622.77
7.4.30.0070.01116.72
7.4.00.0040.00814.99
7.3.330.0000.00513.20
7.3.320.0000.00513.38
7.3.310.0030.00416.24
7.3.300.0050.00216.41
7.3.290.0140.00616.32
7.3.280.0080.00916.36
7.3.270.0120.00617.40
7.3.260.0140.00416.44
7.3.250.0110.01016.34
7.3.240.0140.00316.37
7.3.230.0110.00616.45
7.3.210.0080.00816.39
7.3.200.0170.00619.39
7.3.190.0080.00816.46
7.3.180.0090.00616.35
7.3.170.0030.01316.39
7.3.160.0060.00916.54
7.3.120.0040.01114.95
7.2.330.0100.01316.44
7.2.320.0030.02016.83
7.2.310.0120.01116.78
7.2.300.0120.00416.66
7.2.290.0060.01116.38
7.2.60.0100.00316.84
7.2.00.0000.01719.36
7.1.200.0000.00615.64
7.1.100.0000.01318.05
7.1.70.0000.00817.13
7.1.60.0000.02419.46
7.1.50.0090.00916.51
7.1.00.0100.07022.32
7.0.200.0270.00314.75
7.0.140.0030.07021.91
7.0.60.0130.06019.91
7.0.50.0130.07717.90
7.0.40.0200.07320.25
7.0.30.0500.05320.06
7.0.20.0200.04720.30
7.0.10.0070.08720.21
7.0.00.0070.04320.25
5.6.280.0000.07720.86
5.6.210.0070.04020.54
5.6.200.0100.07718.25
5.6.190.0030.09720.47
5.6.180.0000.07720.49
5.6.170.0130.04720.58
5.6.160.0100.06020.71
5.6.150.0000.04318.16
5.6.140.0070.08318.19
5.6.130.0100.03718.28
5.6.120.0200.04721.12
5.6.110.0130.09021.01
5.6.100.0000.04321.05
5.6.90.0030.05721.04
5.6.80.0070.07720.37
5.5.350.0070.07020.33
5.5.340.0070.04717.98
5.5.330.0070.08720.21
5.5.320.0370.04320.27
5.5.310.0200.04320.37
5.5.300.0030.04317.92
5.5.290.0030.06317.98
5.5.280.0100.04720.81
5.5.270.0070.08320.77
5.5.260.0070.08320.88
5.5.250.0070.06720.68
5.5.240.0170.06720.29
5.4.450.0030.08319.46
5.4.440.0100.06319.36
5.4.430.0070.07719.36
5.4.420.0030.06019.26
5.4.410.0030.05319.09
5.4.400.0000.05719.04
5.4.390.0070.05019.02
5.4.380.0070.06019.04
5.4.370.0070.03719.07
5.4.360.0030.04719.04
5.4.350.0030.03718.80
5.4.340.0070.03019.04
5.4.320.0030.03319.04
5.4.310.0030.03319.27
5.4.300.0030.04719.07
5.4.290.0030.04019.04
5.4.280.0030.03318.93
5.4.270.0100.02718.97
5.4.260.0000.04018.83
5.4.250.0000.04319.15
5.4.240.0000.03719.04
5.4.230.0000.04319.06
5.4.220.0030.03719.06
5.4.210.0000.03718.82
5.4.200.0030.03319.25
5.4.190.0000.03718.79
5.4.180.0000.04019.02
5.4.170.0000.04318.85
5.4.160.0000.03719.01
5.4.150.0030.03319.23
5.4.140.0030.03316.31
5.4.130.0000.03716.33
5.4.120.0000.03316.30
5.4.110.0030.03316.45
5.4.100.0000.03316.55
5.4.90.0000.04316.26
5.4.80.0070.06316.25
5.4.70.0030.06316.17
5.4.60.0030.04016.54
5.4.50.0070.05016.24
5.4.40.0070.06016.40
5.4.30.0070.04316.40
5.4.20.0000.04016.41
5.4.10.0030.06016.31
5.4.00.0030.05715.72
5.3.290.0000.04014.69
5.3.280.0100.03014.60
5.3.270.0000.03714.54
5.3.260.0000.03714.63
5.3.250.0000.03714.61
5.3.240.0000.04014.59
5.3.230.0030.03314.63
5.3.220.0030.03314.66
5.3.210.0000.03714.79
5.3.200.0030.03314.69
5.3.190.0030.03714.59
5.3.180.0070.04014.66
5.3.170.0070.04314.54
5.3.160.0100.04314.79
5.3.150.0070.04014.73
5.3.140.0030.07714.57
5.3.130.0030.06014.61
5.3.120.0000.04714.46
5.3.110.0000.05714.47
5.3.100.0030.07714.27
5.3.90.0070.06714.25
5.3.80.0100.06714.19
5.3.70.0030.05313.93
5.3.60.0070.06714.09
5.3.50.0000.07313.87
5.3.40.0000.08014.14
5.3.30.0000.07313.92
5.3.20.0070.06713.63
5.3.10.0070.06713.71
5.3.00.0030.07313.55
5.2.170.0030.06011.88
5.2.160.0000.06311.88
5.2.150.0070.04711.88
5.2.140.0000.06711.88
5.2.130.0000.06011.88
5.2.120.0000.05711.88
5.2.110.0030.03311.88
5.2.100.0000.04011.88
5.2.90.0030.04011.88
5.2.80.0030.06011.88
5.2.70.0070.06011.88
5.2.60.0070.05011.88
5.2.50.0030.05011.88
5.2.40.0000.04711.88
5.2.30.0030.04711.88
5.2.20.0030.03311.88
5.2.10.0070.06011.88
5.2.00.0030.05011.88
5.1.60.0000.03711.88
5.1.50.0030.04711.88
5.1.40.0030.05711.88
5.1.30.0030.06011.88
5.1.20.0070.05311.88
5.1.10.0030.05011.88
5.1.00.0000.05011.88
5.0.50.0030.03711.88
5.0.40.0030.03311.88
5.0.30.0100.05311.88
5.0.20.0030.04311.88
5.0.10.0000.02311.88
5.0.00.0030.06711.88
4.4.90.0000.04011.88
4.4.80.0030.03011.88
4.4.70.0070.03311.88
4.4.60.0030.01311.88
4.4.50.0000.03711.88
4.4.40.0000.05711.88
4.4.30.0030.02711.88
4.4.20.0070.03311.88
4.4.10.0000.03711.88
4.4.00.0000.05311.88
4.3.110.0030.03711.88
4.3.100.0000.03311.88
4.3.90.0070.02311.88
4.3.80.0030.04711.88
4.3.70.0030.02311.88
4.3.60.0000.03311.88
4.3.50.0000.04011.88
4.3.40.0000.04311.88
4.3.30.0000.02711.88
4.3.20.0030.03011.88
4.3.10.0000.03311.88
4.3.00.0030.02311.88

preferences:
50.48 ms | 400 KiB | 5 Q