3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { throw new \UnexpectedValueException(); } catch (\UnexpectedValueException $exception) { try { // throw new \UnexpectedValueException('user deleted'); throw new \Exception(); } catch (\UnexpectedValueException $exception) { throw new \UnexpectedValueException('user not found'); } } catch (\InvalidArgumentException $exception) { throw new \InvalidArgumentException('too many users found'); }

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.0110.00418.30
8.3.50.0140.00921.12
8.3.40.0070.00718.84
8.3.30.0140.00019.27
8.3.20.0050.00220.21
8.3.10.0080.00023.48
8.3.00.0040.00419.51
8.2.180.0110.00416.50
8.2.170.0110.00322.96
8.2.160.0040.01120.43
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00422.10
8.2.110.0040.00420.53
8.2.100.0080.00417.91
8.2.90.0040.00419.22
8.2.80.0060.00317.97
8.2.70.0030.00617.63
8.2.60.0090.00317.91
8.2.50.0000.00818.07
8.2.40.0030.00619.76
8.2.30.0050.00217.91
8.2.20.0040.00417.75
8.2.10.0040.00418.06
8.2.00.0000.00717.62
8.1.280.0110.00425.92
8.1.270.0040.00423.96
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0100.00023.78
8.1.230.0120.00018.88
8.1.220.0090.00017.74
8.1.210.0000.00818.77
8.1.200.0000.00917.35
8.1.190.0040.00417.48
8.1.180.0000.00818.10
8.1.170.0000.00818.40
8.1.160.0000.00722.11
8.1.150.0000.00818.93
8.1.140.0040.00417.54
8.1.130.0030.00317.73
8.1.120.0050.00217.36
8.1.110.0000.00817.46
8.1.100.0020.00517.45
8.1.90.0000.00817.35
8.1.80.0040.00417.47
8.1.70.0000.00717.44
8.1.60.0000.01217.50
8.1.50.0030.00517.54
8.1.40.0040.00417.54
8.1.30.0030.00617.63
8.1.20.0080.00017.64
8.1.10.0040.00417.47
8.1.00.0000.00717.54
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0040.00418.44
8.0.270.0070.00017.24
8.0.260.0000.00617.20
8.0.250.0070.00016.98
8.0.240.0030.00316.94
8.0.230.0000.00816.95
8.0.220.0030.00316.77
8.0.210.0080.00016.91
8.0.200.0030.00316.91
8.0.190.0030.00316.95
8.0.180.0070.00016.93
8.0.170.0030.00516.81
8.0.160.0000.00716.89
8.0.150.0040.00416.84
8.0.140.0030.00316.89
8.0.130.0030.00313.38
8.0.120.0040.00416.95
8.0.110.0000.00816.93
8.0.100.0070.00016.98
8.0.90.0040.00416.87
8.0.80.0000.02116.98
8.0.70.0070.00016.75
8.0.60.0000.00716.84
8.0.50.0000.00716.81
8.0.30.0070.01317.21
8.0.20.0090.01217.40
8.0.10.0000.00717.09
8.0.00.0050.01216.90
7.4.330.0000.00515.10
7.4.320.0000.00616.60
7.4.300.0000.00716.59
7.4.290.0070.00016.59
7.4.280.0070.00316.64
7.4.270.0070.00016.61
7.4.260.0100.00016.64
7.4.250.0030.00316.52
7.4.240.0070.00016.39
7.4.230.0030.00316.59
7.4.220.0070.01116.71
7.4.210.0030.01816.37
7.4.200.0000.00716.57
7.4.160.0110.00416.47
7.4.150.0090.01417.40
7.4.140.0110.00917.86
7.4.130.0080.00816.55
7.4.120.0080.00816.51
7.4.110.0090.00916.69
7.4.100.0090.00916.55
7.4.90.0080.00816.61
7.4.80.0110.01119.39
7.4.70.0140.00616.52
7.4.60.0090.00916.43
7.4.50.0050.00016.59
7.4.40.0110.01116.57
7.4.30.0030.01316.60
7.4.00.0070.00715.04
7.3.330.0000.00613.01
7.3.320.0030.00313.16
7.3.310.0040.00416.31
7.3.300.0030.00316.25
7.3.290.0030.01016.29
7.3.280.0080.00716.31
7.3.270.0070.01117.40
7.3.260.0140.00316.35
7.3.250.0130.00516.55
7.3.240.0090.01316.50
7.3.230.0030.01416.55
7.3.210.0060.00916.54
7.3.200.0130.00719.39
7.3.190.0100.00716.30
7.3.180.0120.00416.44
7.3.170.0070.00816.49
7.3.160.0030.01316.29
7.3.10.0000.01216.21
7.3.00.0060.00616.57
7.2.330.0180.00016.68
7.2.320.0060.01216.57
7.2.310.0080.00816.61
7.2.300.0040.01316.61
7.2.290.0060.01116.57
7.2.130.0140.00416.54
7.2.120.0100.00716.77
7.2.110.0000.01416.81
7.2.100.0060.01016.75
7.2.90.0070.00316.79
7.2.80.0030.00716.42
7.2.70.0100.00716.72
7.2.60.0080.00816.70
7.2.50.0030.01216.81
7.2.40.0070.01016.68
7.2.30.0030.00616.52
7.2.20.0030.00916.66
7.2.10.0130.00716.54
7.2.00.0030.01018.08
7.1.250.0070.00715.54
7.1.240.0030.00615.32
7.1.230.0120.00615.81
7.1.220.0130.00315.22
7.1.210.0120.00315.55
7.1.200.0050.00915.64
7.1.190.0000.00915.69
7.1.180.0090.00315.56
7.1.170.0030.01015.87
7.1.160.0060.00315.69
7.1.150.0030.00915.43
7.1.140.0090.00315.28
7.1.130.0000.01115.67
7.1.120.0110.00715.78
7.1.110.0080.00015.37
7.1.100.0040.00415.50
7.1.90.0000.00915.32
7.1.80.0040.01115.86
7.1.70.0020.00616.18
7.1.60.0090.00416.41
7.1.50.0070.00716.14
7.1.40.0060.01015.69
7.1.30.0030.00615.64
7.1.20.0130.00015.77
7.1.10.0030.01015.44
7.1.00.0050.04319.04
7.0.330.0040.01115.21
7.0.320.0060.00915.33
7.0.310.0060.00915.24
7.0.300.0000.01115.29
7.0.290.0130.00315.36
7.0.280.0030.00915.29
7.0.270.0030.00915.05
7.0.260.0000.01215.38
7.0.250.0060.01015.22
7.0.240.0070.00715.28
7.0.230.0000.01015.44
7.0.220.0070.00315.25
7.0.210.0100.00315.41
7.0.200.0050.00916.04
7.0.190.0030.00615.21
7.0.180.0030.01015.03
7.0.170.0060.00615.07
7.0.160.0030.00615.37
7.0.150.0030.00315.08
7.0.140.0070.03518.71
7.0.130.0040.00915.21
7.0.120.0120.00014.99
7.0.110.0070.00715.36
7.0.100.0050.00215.02
7.0.90.0030.00514.80
7.0.80.0100.00315.42
7.0.70.0030.00615.11
7.0.60.0050.04417.58
7.0.50.0090.01916.57
7.0.40.0070.04516.71
7.0.30.0170.01816.72
7.0.20.0220.03516.60
7.0.10.0020.05216.46
7.0.00.0110.04016.69
5.6.380.0000.01314.26
5.6.370.0070.00714.07
5.6.360.0000.01013.98
5.6.350.0060.00914.01
5.6.340.0030.01213.96
5.6.330.0040.00814.06
5.6.320.0090.00614.14
5.6.310.0000.00813.63
5.6.300.0000.01214.17
5.6.290.0000.00913.75
5.6.280.0070.03717.52
5.6.270.0030.00614.09
5.6.260.0100.00014.30
5.6.250.0090.00314.02
5.6.240.0060.00314.31
5.6.230.0030.00713.87
5.6.220.0030.00713.90
5.6.210.0030.03817.35
5.6.200.0100.04016.17
5.6.190.0090.03817.38
5.6.180.0080.02517.31
5.6.170.0170.02717.14
5.6.160.0050.04517.27
5.6.150.0050.02516.18
5.6.140.0030.02816.03
5.6.130.0060.03316.26
5.6.120.0030.03317.58
5.6.110.0050.02517.63
5.6.100.0000.02817.57
5.6.90.0020.04717.52
5.6.80.0110.04217.22
5.6.70.0100.00313.88
5.6.60.0100.00613.82
5.6.50.0070.00714.17
5.6.40.0000.01314.04
5.6.30.0090.00614.08
5.6.20.0040.00413.95
5.6.10.0100.00313.86
5.6.00.0000.00813.97
5.5.380.0100.00010.84
5.5.370.0000.01210.86
5.5.360.0000.01011.01
5.5.350.1770.02515.71
5.5.340.0080.03814.48
5.5.330.0070.03315.56
5.5.320.0170.04115.58
5.5.310.0110.02115.46
5.5.300.0050.02214.51
5.5.290.0130.03214.33
5.5.280.0020.04715.84
5.5.270.0070.02015.93
5.5.260.0070.02416.03
5.5.250.0070.03815.71
5.5.240.0070.03515.56
5.5.230.0070.00410.81
5.5.220.0030.00610.96
5.5.210.0000.00910.79
5.5.200.0070.00710.90
5.5.190.0030.00610.60
5.5.180.0030.00610.83
5.5.170.0060.00610.48
5.5.160.0070.00311.00
5.5.150.0030.00911.08
5.5.140.0050.00810.54
5.5.130.0030.01010.77
5.5.120.0100.00310.97
5.5.110.0070.01011.08
5.5.100.0100.00610.90
5.5.90.0030.01010.91
5.5.80.0000.01110.60
5.5.70.0040.00811.11
5.5.60.0060.00610.67
5.5.50.0030.00610.85
5.5.40.0070.00711.02
5.5.30.0090.00310.64
5.5.20.0060.00610.85
5.5.10.0080.00310.54
5.5.00.0030.00610.55
5.4.450.0400.02815.07
5.4.440.0370.03115.01
5.4.430.0370.03015.21
5.4.420.0350.00315.36
5.4.410.0350.00015.26
5.4.400.0340.00215.04
5.4.390.0410.00014.91
5.4.380.0370.00314.98
5.4.370.0380.00714.87
5.4.360.0320.00214.99
5.4.350.0320.00614.78
5.4.340.0040.02411.40
5.4.330.0000.01310.71
5.4.320.0020.02511.75
5.4.310.0060.02011.70
5.4.300.0070.01911.74
5.4.290.0050.02211.74
5.4.280.0070.02011.47
5.4.270.0040.02011.53
5.4.260.0030.02411.62
5.4.250.0080.01911.57
5.4.240.0040.02411.68
5.4.230.0040.02211.57
5.4.220.0060.02011.74
5.4.210.0080.01711.59
5.4.200.0050.02111.55
5.4.190.0060.02111.54
5.4.180.0050.02111.54
5.4.170.0070.02411.42
5.4.160.0020.02511.59
5.4.150.0070.02611.54
5.4.140.0070.02711.38
5.4.130.0050.02311.22
5.4.120.0060.02511.21
5.4.110.0030.02411.40
5.4.100.0050.02511.22
5.4.90.0060.02111.40
5.4.80.0020.02611.40
5.4.70.0060.02011.42
5.4.60.0060.02011.26
5.4.50.0070.02211.49
5.4.40.0080.01811.38
5.4.30.0040.02311.31
5.4.20.0030.02211.48
5.4.10.0060.01911.52
5.4.00.0080.01911.16
5.3.290.0050.02711.59
5.3.280.0060.01911.56
5.3.270.0060.01911.48
5.3.260.0040.02311.57
5.3.250.0020.02311.64
5.3.240.0050.02211.60
5.3.230.0070.02411.46
5.3.220.0050.01911.57
5.3.210.0050.02311.55
5.3.200.0040.02011.57
5.3.190.0050.02011.59
5.3.180.0080.01911.62
5.3.170.0060.02311.64
5.3.160.0040.02111.67
5.3.150.0070.02411.63
5.3.140.0060.01811.58
5.3.130.0060.02311.62
5.3.120.0050.02211.45
5.3.110.0070.02011.44
5.3.100.0030.02211.27
5.3.90.0050.02111.31
5.3.80.0070.02111.14
5.3.70.0070.02211.10
5.3.60.0070.01811.31
5.3.50.0070.02011.25
5.3.40.0050.02211.20
5.3.30.0050.01911.22
5.3.20.0060.02011.11
5.3.10.0020.02311.00
5.3.00.0060.02111.01
5.2.170.0040.0189.43
5.2.160.0040.0169.43
5.2.150.0040.0189.43
5.2.140.0020.0219.43
5.2.130.0020.0179.41
5.2.120.0040.0179.41
5.2.110.0040.0169.42
5.2.100.0050.0179.42
5.2.90.0030.0179.42
5.2.80.0030.0189.41
5.2.70.0040.0179.41
5.2.60.0050.0169.39
5.2.50.0040.0189.38
5.2.40.0050.0239.36
5.2.30.0050.0169.35
5.2.20.0050.0169.34
5.2.10.0040.0189.30
5.2.00.0020.0199.23
5.1.60.0050.0178.88
5.1.50.0050.0168.87
5.1.40.0040.0158.86
5.1.30.0020.0169.04
5.1.20.0050.0169.05
5.1.10.0030.0148.91
5.1.00.0020.0168.91
5.0.50.0010.0158.14
5.0.40.0030.0128.07
5.0.30.0040.0167.97
5.0.20.0050.0097.96
5.0.10.0060.0137.95
5.0.00.0040.0177.95
4.4.90.0030.0077.22
4.4.80.0040.0087.21
4.4.70.0030.0087.20
4.4.60.0040.0097.21
4.4.50.0020.0117.21
4.4.40.0040.0147.18
4.4.30.0040.0077.21
4.4.20.0040.0107.25
4.4.10.0010.0117.25
4.4.00.0030.0147.21
4.3.110.0020.0117.16
4.3.100.0030.0087.16
4.3.90.0030.0077.15
4.3.80.0010.0157.12
4.3.70.0040.0077.14
4.3.60.0050.0057.14
4.3.50.0020.0117.14
4.3.40.0020.0157.10
4.3.30.0030.0096.47
4.3.20.0010.0126.46
4.3.10.0040.0096.44
4.3.00.0030.0158.18

preferences:
34.97 ms | 401 KiB | 5 Q