3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyException extends Exception { public function __construct($message = "", $code = 0, Throwable $previous = null) { print "2. Exception constructor\n"; parent::__construct($message, $code, $previous); } } function ololo() { try { print "1. Start\n"; throw new MyException("4. Exception message\n"); } finally { return "3. Return statement\n"; } } try { print ololo(); } catch (Exception $e) { print $e->getMessage(); }

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.0120.00616.38
8.3.50.0060.00816.27
8.3.40.0070.00718.66
8.3.30.0120.00318.84
8.3.20.0080.00020.16
8.3.10.0030.00521.91
8.3.00.0030.00622.45
8.2.180.0090.00918.17
8.2.170.0100.00522.96
8.2.160.0100.00319.16
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00020.77
8.2.110.0030.00622.23
8.2.100.0080.00417.90
8.2.90.0040.00419.23
8.2.80.0000.00817.97
8.2.70.0060.00317.47
8.2.60.0040.00817.93
8.2.50.0040.00418.10
8.2.40.0040.00420.59
8.2.30.0050.00319.24
8.2.20.0040.00417.99
8.2.10.0040.00418.07
8.2.00.0070.00018.15
8.1.280.0130.00625.92
8.1.270.0080.00023.83
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0040.00421.04
8.1.230.0090.00319.09
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0030.00717.35
8.1.190.0000.00817.00
8.1.180.0050.00518.10
8.1.170.0000.00818.59
8.1.160.0080.00018.93
8.1.150.0040.00420.14
8.1.140.0040.00419.48
8.1.130.0070.00018.75
8.1.120.0040.00417.39
8.1.110.0030.00517.38
8.1.100.0050.00317.41
8.1.90.0070.00017.35
8.1.80.0020.00517.29
8.1.70.0000.00717.42
8.1.60.0040.00417.46
8.1.50.0000.00817.36
8.1.40.0000.00817.35
8.1.30.0030.00517.62
8.1.20.0000.00717.60
8.1.10.0040.00417.51
8.1.00.0080.00017.46
8.0.300.0050.00320.12
8.0.290.0080.00016.75
8.0.280.0070.00018.46
8.0.270.0040.00417.26
8.0.260.0030.00318.93
8.0.250.0070.00017.02
8.0.240.0000.00717.07
8.0.230.0030.00316.86
8.0.220.0000.00716.94
8.0.210.0000.00716.90
8.0.200.0030.00316.85
8.0.190.0000.00916.86
8.0.180.0000.00716.84
8.0.170.0030.00516.82
8.0.160.0050.00316.88
8.0.150.0040.00416.87
8.0.140.0040.00416.96
8.0.130.0050.00013.48
8.0.120.0070.00016.89
8.0.110.0040.00416.88
8.0.100.0000.00816.94
8.0.90.0000.00817.02
8.0.80.0120.00316.88
8.0.70.0030.00516.74
8.0.60.0000.00716.83
8.0.50.0000.00716.97
8.0.30.0050.01317.16
8.0.20.0080.01217.40
8.0.10.0040.00416.97
8.0.00.0080.01316.80
7.4.330.0000.00715.55
7.4.320.0030.00316.55
7.4.300.0060.00016.51
7.4.290.0000.00716.56
7.4.280.0000.00816.59
7.4.270.0000.00716.57
7.4.260.0070.00016.45
7.4.250.0040.00416.40
7.4.240.0050.00216.54
7.4.230.0030.00316.63
7.4.220.0070.01116.48
7.4.210.0100.00716.54
7.4.200.0030.00316.29
7.4.160.0060.01216.50
7.4.150.0060.01317.40
7.4.140.0110.00617.86
7.4.130.0120.01216.67
7.4.120.0100.00916.47
7.4.110.0030.02016.53
7.4.100.0100.00716.63
7.4.90.0130.00716.39
7.4.80.0180.00319.39
7.4.70.0080.00916.35
7.4.60.0100.00716.40
7.4.50.0000.01216.37
7.4.40.0060.01016.63
7.4.30.0060.01616.32
7.4.00.0090.00614.94
7.3.330.0060.00013.23
7.3.320.0030.00313.18
7.3.310.0000.00716.41
7.3.300.0030.00316.24
7.3.290.0040.00416.35
7.3.280.0090.00816.35
7.3.270.0090.00917.40
7.3.260.0130.00616.48
7.3.240.0070.01116.48
7.3.230.0070.01316.29
7.3.210.0040.01516.53
7.3.200.0090.00916.52
7.3.190.0100.00716.59
7.3.180.0160.00016.49
7.3.170.0130.00316.39
7.3.160.0080.00816.58
7.2.330.0060.01216.82
7.2.320.0100.00716.35
7.2.310.0120.00616.75
7.2.300.0100.00716.66
7.2.290.0100.00616.64
7.2.80.0070.00716.79
7.2.60.0060.00616.95
7.2.00.0190.01319.29
7.1.200.0030.00715.54
7.1.70.0100.00517.08
7.1.60.0080.00617.11
7.1.50.0100.00516.97
7.1.40.0040.00816.97
7.1.30.0080.00816.97
7.1.20.0090.00616.97
7.1.10.0000.01816.97
7.1.00.0030.00516.97
7.0.200.0040.00716.97
7.0.190.0040.01516.97
7.0.180.0040.00816.97
7.0.170.0090.00316.97
7.0.160.0080.00416.97
7.0.150.0040.00816.97
7.0.140.0060.00316.97
7.0.130.0100.00716.97
7.0.120.0030.01016.97
7.0.110.0030.00616.97
7.0.100.0050.00316.97
7.0.90.0040.00416.97
7.0.80.0000.01016.97
7.0.70.0040.00416.97
7.0.60.0000.00716.97
7.0.50.0060.00316.97
7.0.40.0030.00716.97
7.0.30.0060.00616.97
7.0.20.0040.00416.97
7.0.10.0060.00316.97
7.0.00.0000.00716.97
5.6.300.0060.04420.69
5.6.290.0040.04220.95
5.6.280.0100.06221.05
5.6.270.0030.04621.05
5.6.260.0070.08220.79
5.6.250.0030.04521.10
5.6.240.0030.04220.98
5.6.230.0100.03720.87
5.6.220.0100.05720.90
5.6.210.0000.04421.09
5.6.200.0000.04520.84
5.6.190.0060.04820.93
5.6.180.0000.06721.04
5.6.170.0030.04521.03
5.6.160.0030.04320.80
5.6.150.0030.04520.82
5.6.140.0030.05120.87
5.6.130.0000.04520.80
5.6.120.0090.04121.00
5.6.110.0100.04021.06
5.6.100.0000.04920.99
5.6.90.0070.03820.77
5.6.80.0030.05220.23
5.6.70.0030.08220.31
5.6.60.0030.04420.37
5.6.50.0090.03720.44
5.6.40.0000.04320.30
5.6.30.0030.04620.14
5.6.20.0100.03420.33
5.6.10.0060.03820.05
5.6.00.0070.04320.30
5.5.380.0060.03817.55
5.5.370.0000.07317.58
5.5.360.0070.04717.53
5.5.350.0030.04517.55
5.5.340.0060.04118.01
5.5.330.0070.04617.87
5.5.320.0030.04018.06
5.5.310.0060.03517.74
5.5.300.0000.04418.14
5.5.290.0000.04718.04
5.5.280.0000.04218.13
5.5.270.0000.04317.70
5.5.260.0070.04318.14
5.5.250.0100.07317.85
5.5.240.0140.04117.56
5.5.230.0130.03617.38
5.5.220.0030.04017.12
5.5.210.0100.03217.43
5.5.200.0000.04017.48
5.5.190.0030.04717.06
5.5.180.0100.04217.06
5.5.160.0000.05317.43
5.5.150.0100.07117.22
5.5.140.0030.04217.36
5.5.130.0000.05317.44
5.5.120.0090.03217.05
5.5.110.0000.04317.44
5.5.100.0070.03717.43
5.5.90.0040.03517.28
5.5.80.0000.05717.24
5.5.70.0000.08617.10
5.5.60.0030.07717.42
5.5.50.0070.07816.98
5.5.40.0070.03717.25
5.5.30.0000.04417.34
5.5.20.0030.03717.08
5.5.10.0030.05517.34
5.5.00.0070.07017.27
5.4.450.0060.03619.28
5.4.440.0040.03919.20
5.4.430.0030.05019.53
5.4.420.0100.03419.24
5.4.410.0000.04119.12
5.4.400.0070.06519.23
5.4.390.0000.04119.07
5.4.380.0070.03719.09
5.4.370.0030.04519.21
5.4.360.0070.04719.07
5.4.350.0040.03518.98
5.4.340.0000.06218.96
5.4.320.0000.04618.98
5.4.310.0000.05418.95
5.4.300.0000.04019.11
5.4.290.0030.03619.07
5.4.280.0030.03919.08
5.4.270.0060.03619.20
5.4.260.0030.07118.98
5.4.250.0030.03719.16
5.4.240.0130.05719.22
5.4.230.0030.03519.20
5.4.220.0070.07518.91
5.4.210.0070.07319.08
5.4.200.0030.06518.91
5.4.190.0070.03319.07
5.4.180.0100.03019.10
5.4.170.0030.03719.10
5.4.160.0000.04319.18
5.4.150.0030.03818.93
5.4.140.0000.04716.97
5.4.130.0070.03116.97
5.4.120.0000.03716.97
5.4.110.0000.03916.97
5.4.100.0000.04216.97
5.4.90.0030.04716.97
5.4.80.0030.05416.97
5.4.70.0070.03216.97
5.4.60.0000.04216.97
5.4.50.0030.03916.97
5.4.40.0000.04116.97
5.4.30.0100.05516.97
5.4.20.0000.06116.97
5.4.10.0030.04216.97
5.4.00.0000.04216.97
5.3.290.0030.03716.97
5.3.280.0030.05316.97
5.3.270.0030.04316.97
5.3.260.0030.03716.97
5.3.250.0030.03616.97
5.3.240.0000.03816.97
5.3.230.0000.05716.97
5.3.220.0000.03816.97
5.3.210.0070.05416.97
5.3.200.0030.05416.97
5.3.190.0000.04116.97
5.3.180.0100.07216.97
5.3.170.0030.04916.97
5.3.160.0030.03816.97
5.3.150.0000.03916.97
5.3.140.0030.03616.97
5.3.130.0090.03116.97
5.3.120.0030.04216.97
5.3.110.0030.03616.97
5.3.100.0030.03616.97
5.3.90.0030.03716.97
5.3.80.0070.03316.97
5.3.70.0030.04616.97
5.3.60.0030.05216.97
5.3.50.0070.03016.97
5.3.40.0030.03716.97
5.3.30.0000.04016.97
5.3.20.0070.04316.97
5.3.10.0000.03616.97
5.3.00.0000.07416.97
5.2.170.0070.02516.97
5.2.160.0000.03316.97
5.2.150.0000.03216.97
5.2.140.0030.06416.97
5.2.130.0000.03416.97
5.2.120.0060.02516.97
5.2.110.0070.06016.97
5.2.100.0030.02716.97
5.2.90.0070.04216.97
5.2.80.0040.03516.97
5.2.70.0000.04016.97
5.2.60.0090.02216.97
5.2.50.0060.02516.97
5.2.40.0030.02616.97
5.2.30.0030.02716.97
5.2.20.0000.03416.97
5.2.10.0040.02616.97
5.2.00.0030.03616.97
5.1.60.0030.04316.97
5.1.50.0030.02916.97
5.1.40.0030.02416.97
5.1.30.0060.02616.97
5.1.20.0000.02716.97
5.1.10.0000.02916.97
5.1.00.0030.05616.97
5.0.50.0030.04216.97
5.0.40.0030.04716.97
5.0.30.0000.03516.97
5.0.20.0000.02116.97
5.0.10.0070.01516.97
5.0.00.0030.03116.97
4.4.90.0070.01516.97
4.4.80.0000.01616.97
4.4.70.0000.01816.97
4.4.60.0000.01816.97
4.4.50.0000.01816.97
4.4.40.0030.04916.97
4.4.30.0030.02216.97
4.4.20.0040.01416.97
4.4.10.0040.01516.97
4.4.00.0030.02416.97
4.3.110.0060.01816.97
4.3.100.0030.01616.97
4.3.90.0030.01816.97
4.3.80.0030.02416.97
4.3.70.0030.01816.97
4.3.60.0030.01916.97
4.3.50.0000.02416.97
4.3.40.0060.02516.97
4.3.30.0030.01616.97
4.3.20.0060.01816.97
4.3.10.0000.01716.97
4.3.00.0000.01716.97

preferences:
70.74 ms | 401 KiB | 5 Q