3v4l.org

run code in 300+ PHP versions simultaneously
<?php class FunkyException extends Exception { protected $errors = ['blah']; public function __construct ($message, $errors) { $this->message = $message; $this->errors = $errors; parent::__construct($message); } public function getErrors() { return $this->errors; } } try { throw new FunkyException ('test', ['this','that']); } catch (FunkyException $e) { print_r ($e->getErrors()); }

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.50
8.3.50.0100.00821.97
8.3.40.0110.00418.79
8.3.30.0140.00418.63
8.3.20.0080.00020.34
8.3.10.0080.00023.36
8.3.00.0050.00319.92
8.2.180.0000.01418.30
8.2.170.0040.01122.96
8.2.160.0100.00320.47
8.2.150.0070.00025.66
8.2.140.0050.00324.66
8.2.130.0000.01020.90
8.2.120.0040.00426.35
8.2.110.0070.00420.40
8.2.100.0060.00617.90
8.2.90.0000.00819.22
8.2.80.0050.00317.97
8.2.70.0050.00517.50
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0040.00421.19
8.2.30.0050.00320.68
8.2.20.0040.00417.75
8.2.10.0040.00417.94
8.2.00.0040.00418.16
8.1.280.0110.00725.92
8.1.270.0090.00018.88
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0040.00422.09
8.1.230.0040.00817.54
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.38
8.1.190.0080.00017.36
8.1.180.0030.00618.10
8.1.170.0000.00818.30
8.1.160.0000.00720.75
8.1.150.0050.00218.89
8.1.140.0060.00319.49
8.1.130.0030.00317.70
8.1.120.0000.00717.51
8.1.110.0060.00317.48
8.1.100.0040.00417.51
8.1.90.0000.00717.39
8.1.80.0000.00917.43
8.1.70.0000.00717.38
8.1.60.0040.00417.48
8.1.50.0060.00317.36
8.1.40.0000.00817.48
8.1.30.0030.00517.55
8.1.20.0000.00817.58
8.1.10.0070.00017.60
8.1.00.0030.00617.38
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00318.30
8.0.270.0000.00817.07
8.0.260.0070.00017.14
8.0.250.0030.00316.85
8.0.240.0040.00416.95
8.0.230.0050.00516.93
8.0.220.0000.00816.91
8.0.210.0030.00616.85
8.0.200.0060.00016.98
8.0.190.0000.00916.98
8.0.180.0080.00016.90
8.0.170.0030.00616.98
8.0.160.0030.00416.88
8.0.150.0050.00316.79
8.0.140.0080.00016.95
8.0.130.0000.00513.46
8.0.120.0030.00516.90
8.0.110.0050.00316.93
8.0.100.0040.00416.91
8.0.90.0030.00316.95
8.0.80.0120.00616.94
8.0.70.0000.00816.90
8.0.60.0000.00717.00
8.0.50.0030.00516.82
8.0.30.0140.00716.86
8.0.20.0100.00917.40
8.0.10.0000.00717.12
8.0.00.0110.01016.67
7.4.330.0050.00016.79
7.4.320.0030.00316.52
7.4.300.0000.00716.50
7.4.290.0000.00716.43
7.4.280.0080.00016.35
7.4.270.0000.00716.43
7.4.260.0000.00716.48
7.4.250.0070.00016.52
7.4.240.0020.00516.59
7.4.230.0030.00316.50
7.4.220.0150.00916.67
7.4.210.0070.00716.67
7.4.200.0000.00716.51
7.4.160.0130.00716.45
7.4.150.0070.01017.40
7.4.140.0110.01017.86
7.4.130.0090.00916.63
7.4.120.0080.01116.63
7.4.110.0040.01416.29
7.4.100.0100.00716.38
7.4.90.0090.00916.44
7.4.80.0110.00819.39
7.4.70.0120.00416.38
7.4.60.0100.00616.58
7.4.50.0070.00716.49
7.4.40.0130.01116.39
7.4.30.0060.01116.41
7.4.00.0030.01414.78
7.3.330.0000.00613.38
7.3.320.0060.00013.32
7.3.310.0000.00716.16
7.3.300.0000.00716.39
7.3.290.0070.01016.33
7.3.280.0110.00716.35
7.3.270.0140.00417.40
7.3.260.0150.00316.54
7.3.240.0130.00516.47
7.3.230.0080.01116.51
7.3.210.0160.00016.37
7.3.200.0000.01616.39
7.3.190.0030.02016.60
7.3.180.0070.01416.43
7.3.170.0090.00916.45
7.3.160.0110.01116.29
7.3.10.0110.00416.43
7.3.00.0070.01016.43
7.2.330.0180.00016.36
7.2.320.0060.01116.72
7.2.310.0130.00416.38
7.2.300.0070.01016.60
7.2.290.0110.00616.44
7.2.130.0180.00016.50
7.2.120.0110.00616.37
7.2.110.0040.01116.61
7.2.100.0130.00016.66
7.2.90.0030.01016.54
7.2.80.0130.00716.13
7.2.70.0110.00316.44
7.2.60.0150.00516.61
7.2.50.0150.00716.73
7.2.40.0000.01116.53
7.2.30.0120.00616.51
7.2.20.0070.01416.38
7.2.10.0120.00316.64
7.2.00.0050.00718.13
7.1.250.0050.00515.66
7.1.100.0000.01118.17
7.1.70.0000.00716.83
7.1.60.0110.01419.13
7.1.50.0070.00716.60
7.1.00.0130.06722.51
7.0.200.0000.00816.80
7.0.60.0030.08719.93
7.0.50.0000.04317.87
7.0.40.0130.08020.21
7.0.30.0300.08720.09
7.0.20.0330.07720.30
7.0.10.0130.07320.16
7.0.00.0070.08020.05
5.6.280.0030.03320.93
5.6.210.0030.04320.61
5.6.200.0130.07318.16
5.6.190.0070.08320.41
5.6.180.0100.07020.46
5.6.170.0300.04720.44
5.6.160.0030.05020.52
5.6.150.0030.04018.14
5.6.140.0030.08318.18
5.6.130.0130.06718.28
5.6.120.0100.03721.02
5.6.110.0070.07320.90
5.6.100.0070.08321.11
5.6.90.0030.09021.11
5.6.80.0100.07320.44
5.5.350.4030.04320.39
5.5.340.0130.05018.07
5.5.330.0070.09020.27
5.5.320.0100.08720.29
5.5.310.0200.07320.28
5.5.300.0000.04017.95
5.5.290.0070.05018.01
5.5.280.0100.04020.89
5.5.270.0100.08020.87
5.5.260.0070.05020.96
5.5.250.0070.08320.71
5.5.240.0170.03720.27

preferences:
53.19 ms | 401 KiB | 5 Q