3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { public $retorno; public function test() { try { throw new Exception('Error!'); } catch(Exception $e) { $this->retorno = 'mensagem!'; } } public function __destruct() { echo $this->retorno; } } $a = new a; $a->test();

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.0140.00016.38
8.3.50.0120.00921.27
8.3.40.0070.01118.97
8.3.30.0120.00318.55
8.3.20.0040.00420.00
8.3.10.0080.00021.91
8.3.00.0000.00721.73
8.2.180.0140.00716.50
8.2.170.0110.00422.96
8.2.160.0140.00020.35
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00420.72
8.2.120.0050.00226.35
8.2.110.0030.00619.27
8.2.100.0080.00418.04
8.2.90.0000.00819.05
8.2.80.0040.00417.97
8.2.70.0000.00917.50
8.2.60.0050.00617.99
8.2.50.0030.00718.09
8.2.40.0040.00422.31
8.2.30.0030.00519.40
8.2.20.0040.00417.70
8.2.10.0040.00418.06
8.2.00.0040.00417.94
8.1.280.0070.00725.92
8.1.270.0190.00021.93
8.1.260.0050.00228.09
8.1.250.0070.00028.09
8.1.240.0060.00322.14
8.1.230.0060.00617.70
8.1.220.0000.00817.79
8.1.210.0060.00318.77
8.1.200.0090.00017.36
8.1.190.0050.00317.35
8.1.180.0080.00018.10
8.1.170.0080.00618.38
8.1.160.0000.00720.83
8.1.150.0000.00718.88
8.1.140.0050.00319.69
8.1.130.0030.00317.67
8.1.120.0040.00417.50
8.1.110.0070.00017.47
8.1.100.0000.00717.40
8.1.90.0000.00717.34
8.1.80.0040.00417.46
8.1.70.0030.00317.36
8.1.60.0000.00817.56
8.1.50.0040.00417.42
8.1.40.0050.00317.48
8.1.30.0040.00417.70
8.1.20.0030.00617.52
8.1.10.0040.00417.60
8.1.00.0040.00417.44
8.0.300.0000.00818.77
8.0.290.0040.00416.88
8.0.280.0030.00318.35
8.0.270.0040.00417.29
8.0.260.0000.00617.15
8.0.250.0040.00416.99
8.0.240.0050.00317.02
8.0.230.0000.00716.93
8.0.220.0030.00616.89
8.0.210.0030.00416.80
8.0.200.0030.00317.02
8.0.190.0030.00616.86
8.0.180.0000.00716.90
8.0.170.0070.00016.98
8.0.160.0030.00516.80
8.0.150.0070.00016.80
8.0.140.0050.00216.90
8.0.130.0030.00313.31
8.0.120.0030.00516.90
8.0.110.0000.00817.00
8.0.100.0040.00416.82
8.0.90.0070.00017.00
8.0.80.0090.00616.96
8.0.70.0000.00817.02
8.0.60.0030.00517.01
8.0.50.0040.00416.98
8.0.30.0090.01217.08
8.0.20.0150.00817.40
8.0.10.0050.00317.05
8.0.00.0100.00816.89
7.4.330.0000.00516.78
7.4.320.0030.00316.43
7.4.300.0000.00616.55
7.4.290.0000.00716.63
7.4.280.0000.00716.61
7.4.270.0030.00316.63
7.4.260.0000.00816.42
7.4.250.0040.00416.55
7.4.240.0000.00716.60
7.4.230.0070.00016.63
7.4.220.0030.01716.45
7.4.210.0130.00316.43
7.4.200.0070.00016.58
7.4.160.0100.00616.34
7.4.150.0070.01117.40
7.4.140.0120.00917.86
7.4.130.0120.01316.51
7.4.120.0100.00816.53
7.4.110.0140.00716.59
7.4.100.0100.00716.71
7.4.90.0130.00316.52
7.4.80.0100.00719.39
7.4.70.0080.00816.49
7.4.60.0040.01816.61
7.4.50.0040.01116.54
7.4.40.0060.01116.37
7.4.30.0060.01116.60
7.4.00.0060.01215.19
7.3.330.0060.00013.14
7.3.320.0050.00013.29
7.3.310.0000.00716.37
7.3.300.0030.00316.41
7.3.290.0100.00516.33
7.3.280.0050.01416.31
7.3.270.0100.00717.40
7.3.260.0100.01316.46
7.3.250.0060.01416.44
7.3.240.0140.00816.47
7.3.230.0060.01016.39
7.3.210.0150.00416.48
7.3.200.0090.00919.39
7.3.190.0040.01216.27
7.3.180.0130.00916.41
7.3.170.0120.00616.36
7.3.160.0100.01016.40
7.3.10.0000.01316.59
7.3.00.0090.00316.65
7.2.330.0090.00916.50
7.2.320.0110.01216.64
7.2.310.0060.01516.71
7.2.300.0080.00816.70
7.2.290.0070.01116.75
7.2.130.0150.00916.89
7.2.120.0040.01116.78
7.2.110.0100.00016.57
7.2.100.0030.01016.95
7.2.90.0070.00317.14
7.2.80.0060.00617.15
7.2.70.0100.01016.98
7.2.60.0060.00916.93
7.2.50.0060.00616.75
7.2.40.0030.01316.79
7.2.30.0070.01016.88
7.2.20.0060.01217.00
7.2.10.0110.00016.84
7.2.00.0060.00818.05
7.1.250.0080.00315.76
7.1.200.0110.00315.70
7.1.100.0000.01118.05
7.1.70.0050.00317.09
7.1.60.0100.01419.40
7.1.50.0060.00616.86
7.1.00.0000.07722.37
7.0.200.0130.00314.80
7.0.60.0330.06019.79
7.0.50.0030.08317.91
7.0.40.0030.06720.38
7.0.30.0170.04320.08
7.0.20.0170.04720.21
7.0.10.0100.05020.36
7.0.00.0100.05320.06
5.6.280.0030.03321.05
5.6.210.0070.06020.48
5.6.200.0070.08018.16
5.6.190.0070.04020.50
5.6.180.0230.05020.50
5.6.170.0230.07720.55
5.6.160.0000.04320.44
5.6.150.0070.08018.19
5.6.140.0030.04018.21
5.6.130.0100.06018.18
5.6.120.0030.04321.02
5.6.110.0070.04021.07
5.6.100.0070.08720.99
5.6.90.0100.06321.11
5.6.80.0200.06720.38
5.5.350.0370.05320.47
5.5.340.0030.08717.94
5.5.330.0100.05320.47
5.5.320.0230.05020.18
5.5.310.0300.05020.24
5.5.300.0070.08318.04
5.5.290.0070.07017.92
5.5.280.0130.03720.66
5.5.270.0030.04320.68
5.5.260.0070.07020.65
5.5.250.0170.05720.80
5.5.240.0230.08020.25

preferences:
70.61 ms | 401 KiB | 5 Q