3v4l.org

run code in 300+ PHP versions simultaneously
<?php function will_throw_exception() { throw new Exception('My very best exception'); } try { will_throw_exception(); } catch (Exception $e) { echo 'Caught exception: ' . $e->getMessage(); } finally { echo "Finally"; }

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.0070.01118.56
8.3.50.0120.00316.50
8.3.40.0030.01618.50
8.3.30.0080.01118.45
8.3.20.0060.00320.04
8.3.10.0080.00021.77
8.3.00.0030.00620.74
8.2.180.0040.01118.41
8.2.170.0090.00922.96
8.2.160.0100.00321.97
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00020.47
8.2.120.0080.00026.35
8.2.110.0030.00622.15
8.2.100.0080.00417.78
8.2.90.0030.00519.05
8.2.80.0030.00517.97
8.2.70.0030.00617.48
8.2.60.0000.00917.93
8.2.50.0090.00018.10
8.2.40.0080.00022.34
8.2.30.0030.00521.09
8.2.20.0060.00318.04
8.2.10.0060.00317.92
8.2.00.0030.00518.08
8.1.280.0110.00425.92
8.1.270.0040.00422.05
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00619.42
8.1.230.0040.00819.02
8.1.220.0030.00617.77
8.1.210.0030.00518.77
8.1.200.0080.00317.35
8.1.190.0030.00617.35
8.1.180.0040.00418.10
8.1.170.0030.00618.64
8.1.160.0040.00419.00
8.1.150.0030.00318.99
8.1.140.0040.00419.48
8.1.130.0060.00318.88
8.1.120.0040.00417.45
8.1.110.0040.00417.48
8.1.100.0040.00417.43
8.1.90.0030.00817.34
8.1.80.0040.00417.36
8.1.70.0000.00717.38
8.1.60.0040.00417.58
8.1.50.0040.00417.44
8.1.40.0040.00417.48
8.1.30.0000.01117.48
8.1.20.0040.00417.67
8.1.10.0000.00717.57
8.1.00.0000.00717.57
8.0.300.0040.00418.77
8.0.290.0050.00216.88
8.0.280.0000.00718.43
8.0.270.0000.00717.15
8.0.260.0000.00716.87
8.0.250.0050.00217.02
8.0.240.0050.00216.87
8.0.230.0000.00817.02
8.0.220.0000.00716.90
8.0.210.0030.00316.91
8.0.200.0050.00216.87
8.0.190.0080.00017.00
8.0.180.0040.00417.00
8.0.170.0070.00017.02
8.0.160.0000.00816.93
8.0.150.0060.00316.84
8.0.140.0040.00416.93
8.0.130.0040.00413.27
8.0.120.0030.00516.90
8.0.110.0030.00616.85
8.0.100.0050.00216.91
8.0.90.0030.00516.97
8.0.80.0090.00616.99
8.0.70.0020.00516.83
8.0.60.0040.00416.99
8.0.50.0050.00216.76
8.0.30.0100.00817.01
8.0.20.0070.01217.40
8.0.10.0000.00817.12
8.0.00.0130.01016.75
7.4.330.0050.00015.55
7.4.320.0030.00316.41
7.4.300.0030.00316.54
7.4.290.0000.00716.56
7.4.280.0000.00916.49
7.4.270.0000.00716.60
7.4.260.0040.00416.60
7.4.250.0000.00816.62
7.4.240.0000.00716.61
7.4.230.0040.00416.63
7.4.220.0060.01216.45
7.4.210.0030.01016.63
7.4.200.0000.00716.57
7.4.160.0070.01016.61
7.4.150.0030.01617.40
7.4.140.0130.00717.86
7.4.130.0040.01516.47
7.4.120.0090.01016.49
7.4.110.0100.00716.51
7.4.100.0060.01116.48
7.4.90.0140.00316.49
7.4.80.0070.01119.39
7.4.70.0030.01216.27
7.4.60.0030.01316.52
7.4.50.0110.00716.40
7.4.40.0160.00716.42
7.4.30.0000.01716.64
7.4.00.0000.01815.11
7.3.330.0060.00013.16
7.3.320.0060.00013.29
7.3.310.0030.00316.16
7.3.300.0030.00316.27
7.3.290.0060.00816.33
7.3.280.0090.00716.26
7.3.270.0090.00817.40
7.3.260.0030.01316.43
7.3.250.0090.01216.38
7.3.240.0070.00916.34
7.3.230.0110.01516.50
7.3.210.0090.00916.44
7.3.200.0090.00816.30
7.3.190.0000.01516.43
7.3.180.0060.01016.27
7.3.170.0100.00616.30
7.3.160.0090.00616.57
7.2.330.0090.00816.43
7.2.320.0110.00716.22
7.2.310.0030.01316.18
7.2.300.0040.01216.45
7.2.290.0100.01416.59
7.2.60.0060.00916.77
7.2.00.0030.01519.52
7.1.200.0030.01015.61
7.1.100.0610.00715.45
7.1.70.0120.00616.95
7.1.60.0430.01033.34
7.1.50.0600.01732.85
7.1.40.0400.01032.67
7.1.30.0530.02332.63
7.1.20.0470.00732.61
7.1.10.0270.01014.59
7.1.00.0330.00714.80
7.0.200.0270.01015.10
7.0.190.0600.00714.60
7.0.180.0470.01014.18
7.0.170.0300.01014.64
7.0.160.0300.01014.46
7.0.150.0270.01314.46
7.0.140.0370.00714.52
7.0.130.0330.01714.85
7.0.120.0270.01314.43
7.0.110.0270.01014.40
7.0.100.0300.01014.41
7.0.90.0370.00314.19
7.0.80.0300.01014.64
7.0.70.0270.01014.39
7.0.60.0870.01014.32
7.0.50.0270.01014.56
7.0.40.0230.01314.71
7.0.30.0300.00714.65
7.0.20.0230.01014.43
7.0.10.0270.01014.62
7.0.00.0300.00714.77

preferences:
57.25 ms | 401 KiB | 5 Q