3v4l.org

run code in 300+ PHP versions simultaneously
<?php $caught = 0; try { echo 'one'; throw new Exception('-error-'); a: echo 'two'; throw new Exception('-error2-'); } catch (Exception $e) { echo $e->getMessage(), "\n"; $caught++; if ($caught < 3) { goto a; } }

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.40.0100.01018.84
8.3.30.0150.00019.18
8.3.20.0000.00720.35
8.3.10.0040.00423.48
8.3.00.0040.00422.44
8.2.170.0040.01122.96
8.2.160.0080.00521.96
8.2.150.0050.00324.18
8.2.140.0030.00524.66
8.2.130.0000.00726.16
8.2.120.0070.00022.31
8.2.110.0030.00620.35
8.2.100.0040.00817.91
8.2.90.0050.00319.23
8.2.80.0050.00317.97
8.2.70.0060.00317.75
8.2.60.0030.00917.93
8.2.50.0100.00018.07
8.2.40.0030.00617.98
8.2.30.0040.00418.00
8.2.20.0070.00017.63
8.2.10.0050.00317.75
8.2.00.0000.00717.68
8.1.270.0030.00623.93
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0050.00324.00
8.1.230.0110.00017.45
8.1.220.0060.00317.77
8.1.210.0080.00418.77
8.1.200.0000.01017.35
8.1.190.0050.00317.63
8.1.180.0030.00618.10
8.1.170.0040.00418.47
8.1.160.0000.00821.97
8.1.150.0000.00718.64
8.1.140.0040.00417.45
8.1.130.0030.00317.85
8.1.120.0040.00417.48
8.1.110.0000.00817.35
8.1.100.0000.00717.36
8.1.90.0040.00717.51
8.1.80.0000.00717.44
8.1.70.0000.00717.38
8.1.60.0000.00917.63
8.1.50.0070.00017.42
8.1.40.0050.00317.55
8.1.30.0030.00517.63
8.1.20.0000.00817.49
8.1.10.0070.00017.43
8.1.00.0030.00517.39
8.0.300.0000.00718.77
8.0.290.0000.00816.75
8.0.280.0070.00018.36
8.0.270.0040.00417.11
8.0.260.0000.00616.79
8.0.250.0000.00716.91
8.0.240.0000.00716.93
8.0.230.0030.00316.85
8.0.220.0040.00416.93
8.0.210.0040.00416.91
8.0.200.0060.00016.84
8.0.190.0000.00816.89
8.0.180.0000.00716.89
8.0.170.0030.00616.89
8.0.160.0080.00016.95
8.0.150.0050.00316.81
8.0.140.0000.00716.90
8.0.130.0050.00013.34
8.0.120.0040.00416.94
8.0.110.0000.00716.87
8.0.100.0080.00016.88
8.0.90.0000.00716.86
8.0.80.0090.00817.01
8.0.70.0000.00716.82
8.0.60.0000.00716.85
8.0.50.0040.00416.88
8.0.30.0040.01517.06
8.0.20.0110.00917.41
8.0.10.0050.00216.95
8.0.00.0130.00516.63
7.4.330.0000.00515.01
7.4.320.0030.00316.51
7.4.300.0000.00616.48
7.4.290.0030.00316.40
7.4.280.0000.00716.50
7.4.270.0060.00316.60
7.4.260.0030.00316.49
7.4.250.0000.00716.39
7.4.240.0000.00716.54
7.4.230.0070.00016.30
7.4.220.0160.00616.64
7.4.210.0040.01016.56
7.4.200.0000.00716.39
7.4.190.0030.00316.68
7.4.160.0110.00516.39
7.4.150.0080.01217.40
7.4.140.0090.01217.86
7.4.130.0120.00516.58
7.4.120.0090.00816.47
7.4.110.0040.01316.63
7.4.100.0140.00516.54
7.4.90.0070.01116.52
7.4.80.0090.01219.37
7.4.70.0060.01216.49
7.4.60.0060.00916.68
7.4.50.0000.00816.51
7.4.40.0090.00622.77
7.4.30.0060.01016.68
7.4.10.0030.01315.05
7.4.00.0070.00814.88
7.3.330.0030.00313.07
7.3.320.0050.00013.21
7.3.310.0030.00316.28
7.3.300.0000.00616.29
7.3.290.0100.01016.23
7.3.280.0050.01316.37
7.3.270.0030.01417.40
7.3.260.0130.00716.61
7.3.250.0090.01316.45
7.3.240.0070.01016.53
7.3.230.0070.01016.39
7.3.210.0120.00616.31
7.3.200.0140.00719.39
7.3.190.0100.01316.25
7.3.180.0100.00716.35
7.3.170.0040.01716.48
7.3.160.0130.00716.41
7.3.130.0070.01114.72
7.3.120.0080.01014.70
7.3.110.0070.00814.92
7.3.100.0080.00614.93
7.3.90.0080.00814.80
7.3.80.0070.00514.96
7.3.70.0060.00714.85
7.3.60.0070.00714.79
7.3.50.0060.00714.71
7.3.40.0060.00514.69
7.3.30.0090.00514.69
7.3.20.0070.00816.58
7.3.10.0040.01116.48
7.3.00.0070.00916.62
7.2.330.0040.01316.87
7.2.320.0140.00816.77
7.2.310.0030.01316.67
7.2.300.0070.01016.79
7.2.290.0110.01116.79
7.2.260.0110.00714.82
7.2.250.0030.01215.24
7.2.240.0050.01214.98
7.2.230.0110.00715.06
7.2.220.0090.00615.16
7.2.210.0030.01015.13
7.2.200.0080.00715.10
7.2.190.0060.00915.00
7.2.180.0040.01214.78
7.2.170.0020.01015.02
7.2.160.0040.00914.90
7.2.150.0080.00716.78
7.2.140.0090.00716.85
7.2.130.0080.00816.72
7.2.120.0030.01116.86
7.2.110.0060.00916.88
7.2.100.0090.00916.93
7.2.90.0110.00716.95
7.2.80.0040.01016.88
7.2.70.0060.00716.81
7.2.60.0080.00416.80
7.2.50.0060.00716.92
7.2.40.0090.00516.88
7.2.30.0060.01116.90
7.2.20.0040.00916.72
7.2.10.0070.00916.87
7.2.00.0080.00917.46
7.1.330.0080.00515.75
7.1.320.0050.00915.61
7.1.310.0030.01015.65
7.1.300.0080.00515.62
7.1.290.0080.00515.70
7.1.280.0080.00715.62
7.1.270.0050.00915.71
7.1.260.0080.00715.64
7.1.250.0070.00715.53
7.1.240.0030.01415.81
7.1.230.0060.00915.82
7.1.220.0030.00815.75
7.1.210.0060.00615.77
7.1.200.0000.01515.59
7.1.190.0060.00615.52
7.1.180.0090.00315.84
7.1.170.0060.00315.58
7.1.160.0030.01015.93
7.1.150.0030.01015.70
7.1.140.0000.01115.63
7.1.130.0040.01115.53
7.1.120.0000.01515.85
7.1.110.0030.01215.96
7.1.100.0050.00716.86
7.1.90.0000.00815.74
7.1.80.0100.00315.79
7.1.70.0030.00916.40
7.1.60.0140.00717.34
7.1.50.0140.00916.33
7.1.40.0060.00915.56
7.1.30.0100.00615.75
7.1.20.0030.01315.65
7.1.10.0070.00715.71
7.1.00.0020.04419.08
7.0.330.0030.01015.46
7.0.320.0120.00615.45
7.0.310.0060.00615.15
7.0.300.0040.00415.51
7.0.290.0000.01515.61
7.0.280.0000.01015.43
7.0.270.0080.00015.24
7.0.260.0110.00415.40
7.0.250.0060.00615.36
7.0.240.0090.00315.45
7.0.230.0000.01115.47
7.0.220.0040.00715.50
7.0.210.0070.00615.56
7.0.200.0070.00716.09
7.0.190.0090.00315.28
7.0.180.0030.01415.57
7.0.170.0090.00615.39
7.0.160.0000.01615.31
7.0.150.0030.01215.53
7.0.140.0050.03918.91
7.0.130.0090.00315.50
7.0.120.0060.00315.52
7.0.110.0000.00915.19
7.0.100.0040.02617.55
7.0.90.0070.02417.62
7.0.80.0130.01617.54
7.0.70.0020.02917.69
7.0.60.0040.04117.57
7.0.50.0050.04717.95
7.0.40.0080.02516.86
7.0.30.0030.02516.78
7.0.20.0080.02316.89
7.0.10.0070.02016.84
7.0.00.0020.03116.79
5.6.400.0060.00614.40
5.6.390.0070.01014.46
5.6.380.0100.00314.63
5.6.370.0040.01114.60
5.6.360.0070.00713.98
5.6.350.0090.00614.57
5.6.340.0080.00314.27
5.6.330.0070.01114.68
5.6.320.0100.00314.61
5.6.310.0100.00714.13
5.6.300.0030.01014.56
5.6.290.0000.01314.62
5.6.280.0030.01014.50
5.6.270.0000.00914.05
5.6.260.0030.00914.22
5.6.250.0030.02717.56
5.6.240.0050.02317.47
5.6.230.0030.02317.45
5.6.220.0040.02617.41
5.6.210.0000.05017.43
5.6.200.0050.02717.62
5.6.190.0030.04517.75
5.6.180.0080.02117.65
5.6.170.0000.02817.64
5.6.160.0080.02217.72
5.6.150.0080.02217.66
5.6.140.0050.02517.64
5.6.130.0020.03017.62
5.6.120.0070.02717.58
5.6.110.0060.04017.70
5.6.100.0080.02317.71
5.6.90.0060.02817.54
5.6.80.0070.01917.20
5.6.70.0070.02017.32
5.6.60.0080.02717.41
5.6.50.0080.03317.28
5.6.40.0050.04017.26
5.6.30.0080.03517.29
5.6.20.0050.03517.37
5.6.10.0050.03817.32
5.6.00.0070.02117.32
5.5.380.0060.02717.36
5.5.370.0050.02017.36
5.5.360.0070.02517.36
5.5.350.0020.04417.43
5.5.340.0050.04017.52
5.5.330.0050.03117.74
5.5.320.0060.02417.67
5.5.310.0030.02717.39
5.5.300.0000.02817.66
5.5.290.0030.03017.71
5.5.280.0050.02317.60
5.5.270.0030.02717.48
5.5.260.0050.02417.48
5.5.250.0070.02317.37
5.5.240.0080.02517.23
5.5.230.0100.01817.29
5.5.220.0030.02617.21
5.5.210.0060.02317.11
5.5.200.0050.04517.04
5.5.190.0020.04217.08
5.5.180.0060.02517.27
5.5.170.0040.00714.01
5.5.160.0050.03517.21
5.5.150.0030.03617.14
5.5.140.0020.02917.20
5.5.130.0120.04017.20
5.5.120.0100.03717.28
5.5.110.0040.04017.21
5.5.100.0050.02417.21
5.5.90.0100.02717.10
5.5.80.0080.03817.03
5.5.70.0000.04516.96
5.5.60.0010.04117.16
5.5.50.0020.04217.19
5.5.40.0070.04117.18
5.5.30.0040.03817.12
5.5.20.0050.02317.08
5.5.10.0120.04017.02
5.5.00.0050.04417.10
5.4.450.0030.02415.73
5.4.440.0000.02715.81
5.4.430.0000.02615.95
5.4.420.0070.02015.83
5.4.410.0030.01815.75
5.4.400.0040.02015.65
5.4.390.0000.03015.69
5.4.380.0030.03415.71
5.4.370.0020.03215.70
5.4.360.0050.03015.69
5.4.350.0030.04515.68
5.4.340.0030.04115.79
5.4.330.0050.00312.35
5.4.320.0050.03815.65
5.4.310.0080.03515.58
5.4.300.0090.03015.72
5.4.290.0080.04015.71
5.4.280.0020.02915.75
5.4.270.0030.02115.69
5.4.260.0100.02515.69
5.4.250.0070.02515.69
5.4.240.0040.04015.70
5.4.230.0080.02815.69
5.4.220.0050.03715.69
5.4.210.0060.03015.71
5.4.200.0080.02315.72
5.4.190.0050.04515.75
5.4.180.0070.03015.78
5.4.170.0080.03515.65
5.4.160.0060.03815.56
5.4.150.0070.03715.68
5.4.140.0060.02014.37
5.4.130.0020.04314.35
5.4.120.0080.02514.31
5.4.110.0050.04214.33
5.4.100.0050.03514.28
5.4.90.0030.04114.33
5.4.80.0090.03414.38
5.4.70.0100.01414.30
5.4.60.0060.03714.29
5.4.50.0070.02714.27
5.4.40.0050.03914.32
5.4.30.0050.03014.37
5.4.20.0050.02814.31
5.4.10.0030.02014.35
5.4.00.0030.03514.07
5.3.290.0030.02213.48
5.3.280.0010.02813.45
5.3.270.0090.03613.46
5.3.260.0060.04313.48
5.3.250.0030.04213.48
5.3.240.0020.02313.46
5.3.230.0050.03713.41
5.3.220.0060.03713.44
5.3.210.0040.04213.46
5.3.200.0040.02413.43
5.3.190.0020.02413.44
5.3.180.0060.03013.46
5.3.170.0050.02613.46
5.3.160.0060.03513.44
5.3.150.0050.03713.46
5.3.140.0080.03813.45
5.3.130.0060.04113.44
5.3.120.0050.02613.42
5.3.110.0000.03413.45
5.3.100.0070.02813.18
5.3.90.0030.04113.12
5.3.80.0050.03813.11
5.3.70.0020.02513.17
5.3.60.0070.03713.15
5.3.50.0080.01813.10
5.3.40.0030.03513.02
5.3.30.0050.02313.13
5.3.20.0020.04212.95
5.3.10.0120.03213.00
5.3.00.0030.02312.92
5.2.170.0070.04713.00
5.2.160.0000.06713.00
5.2.150.0030.06313.00
5.2.140.0100.05713.00
5.2.130.0100.05713.00
5.2.120.0070.06013.00
5.2.110.0130.03313.00
5.2.100.0070.05713.00
5.2.90.0030.05713.00
5.2.80.0030.03713.00
5.2.70.0030.06313.00
5.2.60.0030.03713.00
5.2.50.0030.05013.00
5.2.40.0070.05313.00
5.2.30.0100.06013.00
5.2.20.0070.05013.00
5.2.10.0000.04713.00
5.2.00.0070.06013.00
5.1.60.0100.04713.00
5.1.50.0100.04713.00
5.1.40.0070.05313.00
5.1.30.0070.05313.00
5.1.20.0000.05713.00
5.1.10.0100.04013.00
5.1.00.0070.03313.00
5.0.50.0030.03013.00
5.0.40.0070.02313.00
5.0.30.0000.05313.00
5.0.20.0030.04013.00
5.0.10.0030.04313.00
5.0.00.0070.06313.00
4.4.90.0070.01313.00
4.4.80.0070.03013.00
4.4.70.0030.03313.00
4.4.60.0070.02713.00
4.4.50.0030.02013.00
4.4.40.0030.03313.00
4.4.30.0030.03313.00
4.4.20.0070.01313.00
4.4.10.0030.03713.00
4.4.00.0030.04313.00
4.3.110.0000.03313.00
4.3.100.0100.03013.00
4.3.90.0000.03713.00
4.3.80.0000.03313.00
4.3.70.0000.02013.00
4.3.60.0030.03313.00
4.3.50.0030.02013.00
4.3.40.0070.04313.00
4.3.30.0070.03013.00
4.3.20.0030.01713.00
4.3.10.0000.03713.00
4.3.00.0000.03713.00

preferences:
63.57 ms | 400 KiB | 5 Q