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 response($e) { echo $this->retorno; } public function __destruct() { $this->response(); } } $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.00716.75
8.3.50.0140.01016.60
8.3.40.0150.00318.74
8.3.30.0070.00718.60
8.3.20.0000.00720.38
8.3.10.0040.00422.02
8.3.00.0000.00921.90
8.2.180.0220.00016.63
8.2.170.0110.00422.96
8.2.160.0100.00320.47
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0060.00320.79
8.2.120.0000.00926.35
8.2.110.0060.00319.34
8.2.100.0120.00017.93
8.2.90.0000.00818.83
8.2.80.0030.00517.97
8.2.70.0030.00617.61
8.2.60.0050.00817.68
8.2.50.0000.00818.09
8.2.40.0040.00422.18
8.2.30.0050.00319.37
8.2.20.0040.00417.60
8.2.10.0050.00318.16
8.2.00.0020.00518.16
8.1.280.0080.00825.92
8.1.270.0080.00022.14
8.1.260.0070.00028.09
8.1.250.0000.00828.09
8.1.240.0100.00022.14
8.1.230.0110.00017.82
8.1.220.0080.00017.74
8.1.210.0000.00918.77
8.1.200.0080.00017.23
8.1.190.0040.00417.13
8.1.180.0080.00018.10
8.1.170.0070.00218.43
8.1.160.0000.00820.67
8.1.150.0000.00718.77
8.1.140.0000.00919.52
8.1.130.0030.00317.62
8.1.120.0000.00717.54
8.1.110.0040.00417.50
8.1.100.0050.00317.51
8.1.90.0030.00517.52
8.1.80.0070.00017.36
8.1.70.0050.00317.42
8.1.60.0050.00317.61
8.1.50.0040.00417.43
8.1.40.0090.00017.54
8.1.30.0040.00417.67
8.1.20.0020.00517.59
8.1.10.0000.00717.59
8.1.00.0000.00817.50
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0070.00018.38
8.0.270.0030.00317.21
8.0.260.0000.00717.26
8.0.250.0030.00316.95
8.0.240.0020.00516.83
8.0.230.0030.00317.00
8.0.220.0090.00016.87
8.0.210.0070.00016.89
8.0.200.0030.00316.83
8.0.190.0060.00316.96
8.0.180.0030.00516.98
8.0.170.0040.00416.90
8.0.160.0000.00816.85
8.0.150.0040.00416.79
8.0.140.0000.00716.92
8.0.130.0060.00013.38
8.0.120.0040.00416.97
8.0.110.0040.00416.86
8.0.100.0040.00416.89
8.0.90.0040.00416.79
8.0.80.0120.00916.94
8.0.70.0000.00816.89
8.0.60.0080.00016.83
8.0.50.0080.00016.73
8.0.30.0120.00716.98
8.0.20.0110.00817.40
8.0.10.0070.00016.95
8.0.00.0110.00816.77
7.4.330.0000.00516.77
7.4.320.0030.00316.63
7.4.300.0000.00616.52
7.4.290.0030.00316.64
7.4.280.0030.00516.55
7.4.270.0030.00316.61
7.4.260.0000.00616.47
7.4.250.0050.00316.48
7.4.240.0030.00316.60
7.4.230.0030.00316.67
7.4.220.0140.00416.64
7.4.210.0030.01716.54
7.4.200.0030.00316.46
7.4.160.0080.00816.51
7.4.150.0130.01017.40
7.4.140.0120.00717.86
7.4.130.0130.00816.46
7.4.120.0090.01216.55
7.4.110.0070.01016.58
7.4.100.0070.01016.47
7.4.90.0070.01116.52
7.4.80.0090.00919.39
7.4.70.0120.00316.75
7.4.60.0070.01316.66
7.4.50.0070.00716.63
7.4.40.0120.00616.48
7.4.30.0130.00716.47
7.4.00.0000.01715.16
7.3.330.0030.00313.33
7.3.320.0000.00513.39
7.3.310.0040.00416.32
7.3.300.0030.00316.38
7.3.290.0040.01116.34
7.3.280.0100.00716.35
7.3.270.0060.01117.40
7.3.260.0120.00616.54
7.3.250.0100.00616.39
7.3.240.0080.00816.43
7.3.230.0140.00316.39
7.3.210.0150.00316.51
7.3.200.0060.01119.39
7.3.190.0070.01016.44
7.3.180.0070.01016.46
7.3.170.0100.01016.40
7.3.160.0090.00616.38
7.3.10.0110.00216.69
7.3.00.0060.00516.66
7.2.330.0070.01116.66
7.2.320.0170.00716.67
7.2.310.0030.02016.74
7.2.300.0070.01016.42
7.2.290.0150.00816.68
7.2.130.0030.00816.78
7.2.120.0120.00316.96
7.2.110.0040.00916.77
7.2.100.0040.01116.65
7.2.90.0060.00916.83
7.2.80.0060.00516.93
7.2.70.0050.01016.83
7.2.60.0080.00616.88
7.2.50.0060.00516.84
7.2.40.0090.00716.64
7.2.30.0020.01017.00
7.2.20.0110.00516.84
7.2.10.0060.00916.94
7.2.00.0050.00917.86
7.1.250.0070.00715.76
7.1.200.0030.00615.34
7.1.100.0000.01217.69
7.1.70.0080.00816.65
7.1.60.0030.02019.40
7.1.50.0080.00416.80
7.1.00.0070.07322.32
7.0.200.0370.00414.93
7.0.60.0400.07020.03
7.0.50.0170.07317.73
7.0.40.0030.07719.98
7.0.30.0100.04720.38
7.0.20.0170.04720.19
7.0.10.0030.06720.07
7.0.00.0130.08320.09
5.6.280.0100.05021.05
5.6.210.0270.07320.76
5.6.200.0000.09018.18
5.6.190.0100.03720.77
5.6.180.0400.06320.64
5.6.170.0170.05320.44
5.6.160.0030.04020.56
5.6.150.0030.08018.18
5.6.140.0030.04018.18
5.6.130.0030.08018.17
5.6.120.0030.04021.01
5.6.110.0030.04021.01
5.6.100.0100.06020.98
5.6.90.0070.07021.12
5.6.80.0100.08020.54
5.5.350.0200.08320.31
5.5.340.0070.05717.98
5.5.330.0130.08320.41
5.5.320.0630.07320.24
5.5.310.0330.07020.34
5.5.300.0000.07317.92
5.5.290.0070.05318.04
5.5.280.0100.08320.80
5.5.270.0030.04320.68
5.5.260.0070.08720.84
5.5.250.0100.07320.58
5.5.240.0200.05320.24

preferences:
52.49 ms | 400 KiB | 5 Q