3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyException extends Exception { function __construct(string $message = "", int $code = 0, Throwable $previous = null) { parent::__construct($message, $code, $previous); $this->code = ['foo']; } } try { throw new MyException(); } catch (Exception $ex) { var_dump($ex); }

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.0150.00316.75
8.3.50.0060.00916.31
8.3.40.0140.00719.07
8.3.30.0070.00718.88
8.3.20.0050.00324.18
8.3.10.0030.00624.66
8.3.00.0000.00826.16
8.2.180.0070.01425.92
8.2.170.0060.00918.95
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0000.00724.66
8.2.130.0000.00726.16
8.2.120.0050.00326.35
8.2.110.0030.00620.43
8.2.100.0090.00317.78
8.2.90.0080.00017.63
8.2.80.0080.00418.92
8.2.70.0080.00017.75
8.2.60.0080.00017.91
8.2.50.0050.00318.05
8.2.40.0000.00717.97
8.2.30.0000.00817.89
8.2.20.0070.00017.91
8.2.10.0000.00719.16
8.2.00.0070.00019.20
8.1.280.0140.00325.92
8.1.270.0070.00023.99
8.1.260.0030.00528.09
8.1.250.0030.00728.09
8.1.240.0000.01118.49
8.1.230.0110.00022.11
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0050.00317.35
8.1.190.0000.00817.22
8.1.180.0000.00918.10
8.1.170.0060.00318.61
8.1.160.0070.00018.90
8.1.150.0050.00318.83
8.1.140.0040.00418.85
8.1.130.0080.00019.23
8.1.120.0000.00717.50
8.1.110.0000.00917.34
8.1.100.0030.00617.48
8.1.90.0040.00417.38
8.1.80.0070.00017.48
8.1.70.0030.00317.45
8.1.60.0050.00317.55
8.1.50.0040.00417.54
8.1.40.0080.00017.49
8.1.30.0030.00517.55
8.1.20.0050.00317.64
8.1.10.0040.00417.63
8.1.00.0040.00417.42
8.0.300.0000.00718.77
8.0.290.0060.00316.75
8.0.280.0030.00318.43
8.0.270.0000.00817.92
8.0.260.0030.00316.83
8.0.250.0000.00816.97
8.0.240.0050.00317.02
8.0.230.0030.00316.95
8.0.220.0070.00016.88
8.0.210.0050.00216.95
8.0.200.0030.00516.85
8.0.190.0040.00416.97
8.0.180.0000.00716.85
8.0.170.0050.00316.79
8.0.160.0030.00516.80
8.0.150.0080.00016.83
8.0.140.0000.00716.94
8.0.130.0030.00313.38
8.0.120.0040.00416.89
8.0.110.0040.00416.83
8.0.100.0000.00716.91
8.0.90.0000.00817.07
8.0.80.0080.00816.90
8.0.70.0030.00516.83
8.0.60.0040.00416.91
8.0.50.0000.00716.94
8.0.30.0150.00316.89
8.0.20.0110.00817.04
8.0.10.0100.00917.09
8.0.00.0140.00717.08
7.4.330.0000.00515.55
7.4.320.0030.00316.51
7.4.300.0030.00316.46
7.4.290.0030.00516.45
7.4.280.0000.00716.52
7.4.270.0000.00716.37
7.4.260.0030.00313.23
7.4.250.0030.00316.52
7.4.240.0040.00416.65
7.4.230.0000.00816.42
7.4.220.0040.00416.61
7.4.210.0050.00916.67
7.4.200.0000.00716.42
7.4.140.0130.00616.52
7.4.130.0090.00916.64
7.4.120.0130.00416.66
7.4.110.0090.00916.51
7.4.100.0060.01616.43
7.4.90.0120.00616.48
7.4.80.0060.01316.42
7.4.70.0170.00716.51
7.4.60.0130.01616.48
7.4.50.0060.01216.68
7.4.40.0150.00616.54
7.4.30.0120.00616.62
7.4.20.0090.00916.61
7.4.10.0150.00616.60
7.4.00.0090.00916.40
7.3.330.0030.00316.25
7.3.320.0050.00213.37
7.3.310.0040.00416.23
7.3.300.0040.00416.22
7.3.290.0120.00616.35
7.3.260.0060.01416.36
7.3.250.0070.01116.46
7.3.240.0100.01316.43
7.3.230.0080.01116.49
7.3.220.0110.01216.56
7.3.210.0140.00616.35
7.3.200.0160.00616.42
7.3.190.0090.00916.38
7.3.180.0060.01216.63
7.3.170.0140.00516.50
7.3.160.0130.00716.40
7.3.150.0150.00316.33
7.3.140.0110.01116.46
7.3.130.0090.00916.41
7.3.120.0150.01116.43
7.3.110.0120.00816.59
7.3.100.0160.00416.23
7.3.90.0090.00916.32
7.3.80.0070.01116.63
7.3.70.0100.01416.37
7.3.60.0160.00616.46
7.3.50.0130.01016.25
7.3.40.0120.00616.20
7.3.30.0140.00316.35
7.3.20.0150.00316.50
7.3.10.0140.00616.41
7.3.00.0120.00616.38

preferences:
58.91 ms | 401 KiB | 5 Q