3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyException extends Exception { } class Test { public function testing() { try { try { throw new MyException('foo!'); } catch (MyException $e) { echo $e->getMessage(); // rethrow it //throw $e; } } catch (Exception $fdvcfd) { var_dump($fdvcfd->getMessage()); } } } $foo = new Test; $foo->testing();

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.00418.56
8.3.50.0110.00622.02
8.3.40.0110.00318.71
8.3.30.0140.00019.13
8.3.20.0050.00320.18
8.3.10.0090.00923.61
8.3.00.0000.00822.52
8.2.180.0100.00618.50
8.2.170.0120.00322.96
8.2.160.0130.00721.89
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0100.00619.36
8.2.110.0110.00021.09
8.2.100.0040.00717.91
8.2.90.0080.00019.08
8.2.80.0040.00417.97
8.2.70.0080.00017.50
8.2.60.0030.00617.91
8.2.50.0030.00718.10
8.2.40.0060.00318.03
8.2.30.0070.00418.13
8.2.20.0050.00217.73
8.2.10.0000.00817.67
8.2.00.0040.00417.75
8.1.280.0100.01025.92
8.1.270.0030.00523.96
8.1.260.0030.00626.35
8.1.250.0110.00028.09
8.1.240.0060.00322.81
8.1.230.0090.00317.70
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0030.00617.22
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0040.00418.43
8.1.160.0040.00422.07
8.1.150.0070.00018.65
8.1.140.0050.00317.41
8.1.130.0000.00717.88
8.1.120.0050.00217.46
8.1.110.0040.00417.38
8.1.100.0000.00717.51
8.1.90.0000.00817.54
8.1.80.0040.00417.34
8.1.70.0040.00417.45
8.1.60.0030.00517.49
8.1.50.0000.00917.57
8.1.40.0040.00417.53
8.1.30.0050.00317.59
8.1.20.0090.00017.68
8.1.10.0040.00417.58
8.1.00.0050.00317.45
8.0.300.0060.00318.77
8.0.290.0040.00416.86
8.0.280.0030.00318.45
8.0.270.0000.00817.21
8.0.260.0030.00316.89
8.0.250.0000.00717.02
8.0.240.0070.00017.00
8.0.230.0030.00316.95
8.0.220.0000.00616.96
8.0.210.0070.00016.95
8.0.200.0060.00016.94
8.0.190.0000.00717.00
8.0.180.0000.00716.91
8.0.170.0080.00016.87
8.0.160.0000.00716.92
8.0.150.0110.00017.02
8.0.140.0000.00716.82
8.0.130.0030.00513.34
8.0.120.0000.00816.94
8.0.110.0050.00216.98
8.0.100.0050.00317.02
8.0.90.0000.00716.91
8.0.80.0100.01316.92
8.0.70.0000.00716.77
8.0.60.0040.00416.86
8.0.50.0070.00016.82
8.0.30.0100.00917.02
8.0.20.0090.00917.40
8.0.10.0040.00417.12
8.0.00.0080.00916.74
7.4.330.0020.00215.00
7.4.320.0060.00016.61
7.4.300.0030.00316.50
7.4.290.0030.00316.50
7.4.280.0030.00316.59
7.4.270.0000.00716.51
7.4.260.0020.00516.63
7.4.250.0000.00716.57
7.4.240.0050.00216.59
7.4.230.0000.00716.62
7.4.220.0120.00616.63
7.4.210.0060.00816.59
7.4.200.0000.00716.67
7.4.190.0000.00716.70
7.4.160.0040.01116.54
7.4.150.0120.00617.40
7.4.140.0170.00517.86
7.4.130.0130.00616.51
7.4.120.0080.00816.54
7.4.110.0090.00916.56
7.4.100.0000.01716.73
7.4.90.0100.00616.38
7.4.80.0060.01216.62
7.4.70.0100.00716.77
7.4.60.0120.01216.32
7.4.50.0040.00416.32
7.4.40.0060.00622.77
7.4.30.0060.01216.68
7.4.00.0100.00714.96
7.3.330.0000.00513.38
7.3.320.0050.00013.30
7.3.310.0050.00216.44
7.3.300.0060.00016.39
7.3.290.0060.00916.26
7.3.280.0090.00916.40
7.3.270.0120.00617.40
7.3.260.0190.00416.38
7.3.250.0100.00916.59
7.3.240.0100.00716.45
7.3.230.0150.00416.51
7.3.210.0130.00316.37
7.3.200.0070.01019.39
7.3.190.0150.00416.40
7.3.180.0130.00316.42
7.3.170.0090.00616.52
7.3.160.0090.00616.54
7.3.120.0130.00314.75
7.3.10.0040.00916.49
7.3.00.0070.01116.57
7.2.330.0100.00716.72
7.2.320.0120.00616.63
7.2.310.0030.01316.79
7.2.300.0090.00616.78
7.2.290.0090.00616.65
7.2.130.0100.00416.34
7.2.120.0070.00816.56
7.2.110.0050.00816.74
7.2.100.0070.00716.69
7.2.90.0060.00916.77
7.2.80.0050.01116.88
7.2.70.0090.00716.60
7.2.60.0210.00916.71
7.2.50.0130.00516.79
7.2.40.0110.00216.84
7.2.30.0090.00716.86
7.2.20.0120.00616.65
7.2.10.0100.01016.85
7.2.00.0100.00617.53
7.1.250.0110.00515.28
7.1.200.0100.00315.81
7.1.100.0100.00518.06
7.1.70.0000.00717.25
7.1.60.0000.01217.18
7.1.50.0070.01016.86
7.1.00.0030.07022.37
7.0.200.0040.01116.45
7.0.140.0100.06722.03
7.0.60.0100.07319.86
7.0.50.0030.04017.88
7.0.40.0230.05720.27
7.0.30.0200.08320.26
7.0.20.0130.04320.08
7.0.10.0030.06020.05
7.0.00.0000.09320.15
5.6.280.0130.06321.16
5.6.210.0100.07720.63
5.6.200.0070.05018.23
5.6.190.0000.04320.77
5.6.180.0100.04320.42
5.6.170.0200.07020.53
5.6.160.0070.03720.44
5.6.150.0030.08318.18
5.6.140.0130.07318.12
5.6.130.0070.07318.28
5.6.120.0070.04721.04
5.6.110.0170.07721.00
5.6.100.0030.04021.05
5.6.90.0030.04020.99
5.6.80.0070.08020.51
5.5.350.0070.07720.45
5.5.340.0070.03317.98
5.5.330.0030.04020.25
5.5.320.0000.08320.29
5.5.310.0200.04720.55
5.5.300.0070.06017.95
5.5.290.0030.08017.95
5.5.280.0070.05020.74
5.5.270.0070.07720.80
5.5.260.0130.07720.80
5.5.250.0200.06720.71
5.5.240.0170.04320.27
5.4.450.0770.07019.31
5.4.440.1000.06019.32
5.4.430.0370.06719.39
5.4.420.0970.05019.37
5.4.410.0070.06019.02
5.4.400.0630.05019.10
5.4.390.0770.05318.84
5.4.380.0100.05718.57
5.4.370.0230.06318.70
5.4.360.0300.05018.81
5.4.350.0230.05718.51
5.4.340.0170.05718.74
5.4.320.0050.03812.50
5.4.310.0060.04012.50
5.4.300.0050.03912.50
5.4.290.0090.03612.50
5.4.280.0070.04012.40
5.4.270.0110.04512.40
5.4.260.0050.03812.40
5.4.250.0050.04612.40
5.4.240.0050.04112.40
5.4.230.0040.04112.39
5.4.220.0060.03612.39
5.4.210.0030.03712.39
5.4.200.0030.04012.39
5.4.190.0150.04712.38
5.4.180.0200.03912.38
5.4.170.0130.04512.39
5.4.160.0120.05112.39
5.4.150.0200.04012.38
5.4.140.0130.04512.06
5.4.130.0200.04112.05
5.4.120.0150.04112.01
5.4.110.0150.04112.01
5.4.100.0130.04512.01
5.4.90.0160.04212.01
5.4.80.0230.06412.00
5.4.70.0130.04312.01
5.4.60.0110.04612.00
5.4.50.0110.04512.00
5.4.40.0170.04011.99
5.4.30.0140.04611.99
5.4.20.0130.04511.99
5.4.10.0120.04611.99
5.4.00.0180.03911.48
5.3.290.0080.03912.80
5.3.280.0080.03812.71
5.3.270.0110.04812.72
5.3.260.0180.04212.72
5.3.250.0170.04212.71
5.3.240.0150.04412.72
5.3.230.0110.04912.71
5.3.220.0330.06012.68
5.3.210.0110.05212.68
5.3.200.0230.03812.68
5.3.190.0150.04612.68
5.3.180.0170.04412.67
5.3.170.0360.08412.67
5.3.160.0150.04712.68
5.3.150.0210.03912.67
5.3.140.0150.04612.66
5.3.130.0300.09112.66
5.3.120.0180.04112.66
5.3.110.0190.04112.66
5.3.100.0160.04412.13
5.3.90.0120.04512.11
5.3.80.0150.04312.10
5.3.70.0140.04412.10
5.3.60.0250.03512.08
5.3.50.0170.07212.03
5.3.40.0150.04312.03
5.3.30.0180.03812.00
5.3.20.0300.08811.78
5.3.10.0150.04011.74
5.3.00.0170.04511.72
5.2.170.0100.0379.22
5.2.160.0130.0349.22
5.2.150.0110.0369.22
5.2.140.0100.0379.22
5.2.130.0110.0359.18
5.2.120.0170.0289.18
5.2.110.0110.0369.19
5.2.100.0090.0369.18
5.2.90.0120.0339.18
5.2.80.0080.0399.17
5.2.70.0150.0319.17
5.2.60.0110.0359.13
5.2.50.0150.0319.09
5.2.40.0110.0389.07
5.2.30.0360.0709.04
5.2.20.0130.0349.05
5.2.10.0110.0398.95
5.2.00.0100.0348.80
5.1.60.0080.0308.09
5.1.50.0160.0248.09
5.1.40.0130.0568.08
5.1.30.0120.0308.42
5.1.20.0090.0338.45
5.1.10.0130.0298.16
5.1.00.0100.0308.16
5.0.50.0050.0286.65
5.0.40.0070.0256.50
5.0.30.0060.0376.32
5.0.20.0080.0236.29
5.0.10.0080.0226.26
5.0.00.0180.0566.25
4.4.90.0070.0174.78
4.4.80.0070.0174.75
4.4.70.0090.0164.76
4.4.60.0090.0194.75
4.4.50.0060.0194.77
4.4.40.0100.0274.71
4.4.30.0090.0174.76
4.4.20.0040.0214.85
4.4.10.0070.0184.85
4.4.00.0080.0274.76
4.3.110.0080.0164.66
4.3.100.0060.0184.66
4.3.90.0070.0164.63
4.3.80.0070.0274.58
4.3.70.0190.0354.63
4.3.60.0060.0184.63
4.3.50.0040.0204.63
4.3.40.0070.0264.54
4.3.30.0070.0163.29
4.3.20.0060.0163.29
4.3.10.0060.0173.25
4.3.00.0070.0206.92

preferences:
45.01 ms | 401 KiB | 5 Q