3v4l.org

run code in 300+ PHP versions simultaneously
<?php class FunkyException extends Exception { protected $errors = ['blah']; public function __constructor ($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.0060.00916.50
8.3.50.0110.01122.08
8.3.40.0110.00318.79
8.3.30.0110.00418.85
8.3.20.0120.00419.98
8.3.10.0050.00323.61
8.3.00.0000.00819.97
8.2.180.0070.00718.29
8.2.170.0100.01022.96
8.2.160.0130.00319.50
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0060.00319.37
8.2.120.0030.00526.35
8.2.110.0030.00621.08
8.2.100.0080.00417.82
8.2.90.0040.00418.03
8.2.80.0000.00917.97
8.2.70.0050.00317.48
8.2.60.0030.00517.90
8.2.50.0040.00418.07
8.2.40.0080.00021.07
8.2.30.0030.00520.62
8.2.20.0000.00717.67
8.2.10.0050.00317.98
8.2.00.0000.00717.93
8.1.280.0060.01225.92
8.1.270.0040.00418.84
8.1.260.0090.00028.09
8.1.250.0030.00528.09
8.1.240.0030.00621.16
8.1.230.0060.00621.03
8.1.220.0030.00617.74
8.1.210.0060.00318.77
8.1.200.0030.00617.35
8.1.190.0080.00017.22
8.1.180.0040.00418.10
8.1.170.0000.00818.50
8.1.160.0040.00420.62
8.1.150.0000.00718.83
8.1.140.0070.00419.52
8.1.130.0030.00317.64
8.1.120.0050.00217.40
8.1.110.0030.00617.32
8.1.100.0050.00317.29
8.1.90.0060.00317.35
8.1.80.0040.00717.38
8.1.70.0000.00817.41
8.1.60.0050.00317.54
8.1.50.0000.00817.53
8.1.40.0080.00017.49
8.1.30.0050.00317.70
8.1.20.0080.00017.59
8.1.10.0000.00817.50
8.1.00.0000.00817.55
8.0.300.0070.00020.09
8.0.290.0040.00416.63
8.0.280.0000.00718.45
8.0.270.0030.00317.20
8.0.260.0000.00717.18
8.0.250.0030.00316.98
8.0.240.0000.00716.98
8.0.230.0060.00316.97
8.0.220.0000.00916.78
8.0.210.0050.00516.83
8.0.200.0000.00616.91
8.0.190.0050.00316.95
8.0.180.0040.00416.80
8.0.170.0000.00816.93
8.0.160.0030.00316.86
8.0.150.0070.00016.84
8.0.140.0040.00416.86
8.0.130.0030.00313.32
8.0.120.0060.00316.91
8.0.110.0080.00016.91
8.0.100.0030.00516.80
8.0.90.0000.00716.77
8.0.80.0130.00316.91
8.0.70.0000.00816.82
8.0.60.0080.00016.75
8.0.50.0000.00816.91
8.0.30.0090.01317.16
8.0.20.0060.01617.40
8.0.10.0000.00716.89
8.0.00.0120.00916.84
7.4.330.0050.00016.67
7.4.320.0000.00616.41
7.4.300.0030.00316.41
7.4.290.0030.00516.36
7.4.280.0040.00416.61
7.4.270.0030.00516.56
7.4.260.0030.00316.51
7.4.250.0030.00516.54
7.4.240.0040.00416.43
7.4.230.0030.00316.32
7.4.220.0100.01316.60
7.4.210.0000.01416.64
7.4.200.0000.00716.40
7.4.160.0130.00416.55
7.4.150.0150.00617.40
7.4.140.0090.01317.86
7.4.130.0110.00716.48
7.4.120.0120.00916.56
7.4.110.0130.00716.49
7.4.100.0070.01316.41
7.4.90.0090.00916.50
7.4.80.0150.00919.39
7.4.70.0060.01016.49
7.4.60.0100.00916.57
7.4.50.0120.00616.29
7.4.40.0070.01016.28
7.4.30.0170.00316.56
7.4.00.0080.00814.83
7.3.330.0070.00013.14
7.3.320.0000.00713.23
7.3.310.0000.00716.33
7.3.300.0000.00716.32
7.3.290.0090.00716.30
7.3.280.0080.00616.28
7.3.270.0100.00717.40
7.3.260.0160.00416.36
7.3.240.0090.00916.38
7.3.230.0080.00816.59
7.3.210.0130.00316.42
7.3.200.0090.01016.44
7.3.190.0100.00716.44
7.3.180.0100.00716.47
7.3.170.0090.01316.32
7.3.160.0060.00916.45
7.2.330.0090.00916.78
7.2.320.0140.00316.57
7.2.310.0140.00316.57
7.2.300.0030.01416.64
7.2.290.0170.00016.64
7.2.60.0120.00316.67
7.2.00.0040.01119.38
7.1.200.0000.00915.75
7.1.100.0000.01017.96
7.1.70.0030.00716.96
7.1.60.0230.00319.13
7.1.50.0030.01016.98
7.1.00.0030.07722.40
7.0.200.0030.00716.52
7.0.60.0100.08319.80
7.0.50.0070.03717.89
7.0.40.0070.08320.32
7.0.30.0370.07020.06
7.0.20.0500.08320.26
7.0.10.0070.09320.08
7.0.00.0130.08020.05
5.6.280.0030.07020.90
5.6.210.0070.04020.73
5.6.200.0170.07718.21
5.6.190.0100.07720.55
5.6.180.0130.06020.77
5.6.170.0230.05320.54
5.6.160.0030.06720.46
5.6.150.0100.03318.19
5.6.140.0100.04718.17
5.6.130.0000.05318.19
5.6.120.0030.04321.00
5.6.110.0070.08721.11
5.6.100.0070.07020.96
5.6.90.0070.08720.93
5.6.80.0170.07020.37
5.5.350.3630.03720.50
5.5.340.0030.04717.93
5.5.330.0230.07020.27
5.5.320.0530.06020.28
5.5.310.0200.07020.46
5.5.300.0030.04018.04
5.5.290.0030.04717.98
5.5.280.0000.04320.89
5.5.270.0170.03720.79
5.5.260.0030.08720.88
5.5.250.0030.09020.59
5.5.240.0070.03320.37

preferences:
52.14 ms | 401 KiB | 5 Q