3v4l.org

run code in 300+ PHP versions simultaneously
<?php //create function with an exception function checkNum($number) { if($number>1) { throw new Exception("Value must be 1 or below"); } return true; } //trigger exception checkNum(1); ?>

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.73
8.3.50.0130.00622.12
8.3.40.0070.01018.57
8.3.30.0110.00419.10
8.3.20.0040.00420.29
8.3.10.0040.00421.86
8.3.00.0030.00519.12
8.2.180.0150.00318.48
8.2.170.0140.00718.84
8.2.160.0110.00422.96
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0000.00819.23
8.2.110.0060.00320.39
8.2.100.0110.00017.50
8.2.90.0070.00019.10
8.2.80.0040.00417.97
8.2.70.0030.00617.50
8.2.60.0040.00417.68
8.2.50.0050.00318.07
8.2.40.0040.00419.72
8.2.30.0040.00417.82
8.2.20.0040.00417.64
8.2.10.0070.00018.03
8.2.00.0050.00217.52
8.1.280.0130.00725.92
8.1.270.0040.00424.66
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0030.00621.12
8.1.230.0000.01118.98
8.1.220.0020.00517.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0080.00016.88
8.1.180.0040.00418.10
8.1.170.0040.00420.30
8.1.160.0040.00421.86
8.1.150.0000.00818.64
8.1.140.0040.00417.23
8.1.130.0030.00617.68
8.1.120.0040.00417.30
8.1.110.0030.00317.23
8.1.100.0070.00017.25
8.1.90.0020.00517.24
8.1.80.0000.00817.36
8.1.70.0030.00317.21
8.1.60.0080.00017.55
8.1.50.0030.00517.46
8.1.40.0040.00417.49
8.1.30.0090.00017.50
8.1.20.0030.00517.52
8.1.10.0030.00517.22
8.1.00.0030.00617.28
8.0.300.0040.00418.77
8.0.290.0040.00416.58
8.0.280.0070.00018.31
8.0.270.0070.00017.13
8.0.260.0000.00617.14
8.0.250.0070.00016.85
8.0.240.0000.00716.73
8.0.230.0030.00316.73
8.0.220.0030.00316.71
8.0.210.0000.00716.66
8.0.200.0030.00316.69
8.0.190.0040.00416.74
8.0.180.0000.00716.79
8.0.170.0070.00016.81
8.0.160.0040.00416.79
8.0.150.0080.00016.58
8.0.140.0040.00416.73
8.0.130.0000.00513.22
8.0.120.0040.00416.74
8.0.110.0000.00716.65
8.0.100.0040.00416.65
8.0.90.0000.00716.71
8.0.80.0030.01316.75
8.0.70.0000.00716.79
8.0.60.0080.00016.69
8.0.50.0000.00716.82
8.0.30.0130.00616.96
8.0.20.0070.01117.40
8.0.10.0000.00716.76
8.0.00.0150.00316.58
7.4.330.0000.00715.03
7.4.320.0000.00616.48
7.4.300.0050.00216.45
7.4.290.0000.01216.44
7.4.280.0140.00016.28
7.4.270.0000.00716.43
7.4.260.0030.00316.52
7.4.250.0070.00016.41
7.4.240.0040.00316.47
7.4.230.0000.00816.50
7.4.220.0100.01016.54
7.4.210.0030.01216.39
7.4.200.0030.00316.51
7.4.160.0030.01216.41
7.4.150.0040.01317.40
7.4.140.0150.00717.86
7.4.130.0100.00916.24
7.4.120.0090.00716.30
7.4.110.0070.01116.35
7.4.100.0110.00816.54
7.4.90.0070.01116.48
7.4.80.0070.01619.39
7.4.70.0080.00816.52
7.4.60.0160.00016.44
7.4.50.0000.00816.37
7.4.40.0050.00616.41
7.4.30.0090.00916.50
7.4.00.0000.01414.94
7.3.330.0000.00713.17
7.3.320.0080.00413.23
7.3.310.0030.00316.29
7.3.300.0030.00316.17
7.3.290.0070.01216.29
7.3.280.0110.00716.35
7.3.270.0070.01017.40
7.3.260.0180.00316.48
7.3.250.0090.00916.34
7.3.240.0090.01216.59
7.3.230.0100.01016.39
7.3.210.0130.00616.39
7.3.200.0070.01019.39
7.3.190.0130.00716.55
7.3.180.0130.00316.41
7.3.170.0120.00916.60
7.3.160.0070.01016.59
7.2.330.0090.00916.31
7.2.320.0040.01616.45
7.2.310.0120.00416.32
7.2.300.0130.00316.61
7.2.290.0070.01016.26
7.2.00.0040.00819.33
7.1.100.0100.00618.30
7.1.70.0030.01017.16
7.1.60.0070.01319.50
7.1.50.0000.02516.65
7.1.00.0030.07722.43
7.0.200.0090.00614.92
7.0.140.0030.03722.08
7.0.60.0000.04319.91
7.0.50.0130.03317.87
7.0.40.0030.05320.13
7.0.30.0300.07020.06
7.0.20.0170.04320.12
7.0.10.0370.04720.33
7.0.00.0030.08720.06
5.6.280.0070.07021.10
5.6.210.0130.08020.73
5.6.200.0100.08318.12
5.6.190.0000.09020.46
5.6.180.0330.07320.47
5.6.170.0230.05320.71
5.6.160.0100.08320.47
5.6.150.0070.07018.18
5.6.140.0070.04318.15
5.6.130.0130.07018.17
5.6.120.0030.04021.07
5.6.110.0000.06720.90
5.6.100.0070.08721.04
5.6.90.0130.08020.95
5.6.80.0070.03720.49
5.6.70.0270.07320.46
5.5.350.0270.08320.47
5.5.340.0070.03718.09
5.5.330.0000.04720.20
5.5.320.0000.08720.44
5.5.310.0230.07320.24
5.5.300.0000.04017.97
5.5.290.0070.08018.05
5.5.280.0130.07320.73
5.5.270.0030.07720.84
5.5.260.0100.06320.95
5.5.250.0070.04020.50
5.5.240.0000.04720.16
5.4.450.0300.05319.47
5.4.440.0330.05719.61
5.4.430.1170.06019.59
5.4.420.1170.06319.59
5.4.410.0200.05718.86
5.4.400.1170.05018.51
5.4.390.1030.05718.53
5.4.380.1100.04018.74
5.4.370.1370.06718.82
5.4.360.0970.06018.59
5.4.350.1000.06018.64
5.4.340.0970.05718.79
5.4.320.1100.05018.84
5.4.310.1030.05718.71
5.4.300.1030.05318.76
5.4.290.1000.05318.74
5.4.280.1000.08018.66
5.4.270.1100.07718.61
5.4.260.1230.06018.60
5.4.250.1000.06018.63
5.4.240.1170.06318.71
5.4.230.1100.04318.77
5.4.220.1200.06718.68
5.4.210.0970.05318.76
5.4.200.0970.04316.62
5.4.190.1000.05018.51
5.4.180.1000.06018.54
5.4.170.0930.06318.77
5.4.160.1000.05018.54
5.4.150.1000.05318.58
5.4.140.5570.04316.29
5.4.130.1070.04716.21
5.4.120.1130.04316.33
5.4.110.0970.05016.32
5.4.100.3030.06316.46
5.4.90.1170.04316.18
5.4.80.0930.05716.20
5.4.70.1170.04716.15
5.4.60.1200.05316.29
5.4.50.1100.03716.29
5.4.40.0930.05716.25
5.4.30.3400.05016.25
5.4.20.1030.05016.20
5.4.10.1100.04016.30
5.4.00.1000.05315.87
5.3.290.1100.07014.64
5.3.280.0030.06014.77
5.3.270.0130.05314.61
5.3.260.2330.05714.59
5.3.250.0670.05714.82
5.3.240.0900.06014.60
5.3.230.0900.05714.65
5.3.220.1100.05014.69
5.3.210.2830.05314.60
5.3.200.1400.04714.75
5.3.190.1200.05714.74
5.3.180.1200.04714.76
5.3.170.1070.07314.77
5.3.160.1030.05314.56
5.3.150.3300.05314.78
5.3.140.1470.05314.57
5.3.130.1470.06714.59
5.3.120.1300.05314.71
5.3.110.1130.06314.61
5.3.100.4230.07014.06
5.3.90.1170.07014.16
5.3.80.1030.06314.01
5.3.70.1000.05014.14
5.3.60.1070.05314.03
5.3.50.1200.06014.11
5.3.40.1130.05314.04
5.3.30.3130.05013.90
5.3.20.0930.06713.71
5.3.10.1500.05313.64
5.3.00.1300.06013.67
5.2.170.1100.05311.34
5.2.160.0970.04311.18
5.2.150.0770.04711.23
5.2.140.0830.04311.23
5.2.130.0830.03311.31
5.2.120.2330.04011.13
5.2.110.1170.03711.20
5.2.100.0930.04311.15
5.2.90.1000.04311.16
5.2.80.0900.05711.13
5.2.70.3100.04311.21
5.2.60.0800.04711.08
5.2.50.0900.04711.21
5.2.40.0770.05011.07
5.2.30.0800.05011.09
5.2.20.0670.05710.99
5.2.10.0670.04310.93
5.2.00.0730.05310.72
5.1.60.0770.04310.11
5.1.50.4200.04010.17
5.1.40.0700.0339.99
5.1.30.0900.05310.33
5.1.20.0930.04010.55
5.1.10.0730.04010.13
5.1.00.0730.04710.16
5.0.50.0470.0278.75
5.0.40.0430.0308.49
5.0.30.0530.0438.33
5.0.20.0370.0238.23
5.0.10.0430.0278.17
5.0.00.0370.0538.24
4.4.90.0470.0275.93
4.4.80.0370.0305.92
4.4.70.0400.0205.86
4.4.60.0270.0275.88
4.4.50.0370.0276.02
4.4.40.0370.0405.97
4.4.30.0400.0235.88
4.4.20.0430.0275.94
4.4.10.0400.0206.05
4.4.00.0330.0405.99
4.3.110.0330.0235.84
4.3.100.0300.0235.82
4.3.90.0270.0235.78
4.3.80.0330.0305.77
4.3.70.0230.0275.91
4.3.60.0270.0235.77
4.3.50.0400.0205.91
4.3.40.0330.0335.78
4.3.30.0130.0274.67
4.3.20.0230.0204.54
4.3.10.0170.0234.57
4.3.00.0100.0276.95

preferences:
67.53 ms | 401 KiB | 5 Q