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(2); ?>

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.70.0120.00618.28
8.3.60.0040.01516.50
8.3.50.0120.00321.92
8.3.40.0140.00018.84
8.3.30.0040.01118.80
8.3.20.0000.00720.18
8.3.10.0000.00821.67
8.3.00.0080.00019.51
8.2.190.0120.00318.54
8.2.180.0110.00718.22
8.2.170.0100.01018.87
8.2.160.0100.00322.96
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0040.00419.48
8.2.110.0070.00319.37
8.2.100.0040.00717.63
8.2.90.0000.00719.09
8.2.80.0050.00317.97
8.2.70.0000.00817.25
8.2.60.0000.00818.04
8.2.50.0000.00818.07
8.2.40.0030.00619.88
8.2.30.0000.00817.91
8.2.20.0040.00417.69
8.2.10.0040.00417.97
8.2.00.0040.00417.65
8.1.280.0130.00725.92
8.1.270.0030.00620.27
8.1.260.0070.00026.35
8.1.250.0000.00928.09
8.1.240.0000.00917.77
8.1.230.0060.00617.64
8.1.220.0040.00417.76
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0050.00317.35
8.1.180.0040.00418.10
8.1.170.0040.00420.36
8.1.160.0030.00622.02
8.1.150.0030.00318.76
8.1.140.0070.00017.40
8.1.130.0000.00717.76
8.1.120.0030.00417.35
8.1.110.0050.00217.39
8.1.100.0040.00417.39
8.1.90.0000.00717.33
8.1.80.0030.00517.39
8.1.70.0000.00717.37
8.1.60.0030.00617.55
8.1.50.0050.00317.45
8.1.40.0000.00817.45
8.1.30.0040.00417.61
8.1.20.0000.00817.48
8.1.10.0000.00717.38
8.1.00.0060.00317.33
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0070.00018.29
8.0.270.0000.00817.19
8.0.260.0000.00817.11
8.0.250.0000.00716.96
8.0.240.0030.00316.95
8.0.230.0040.00416.96
8.0.220.0040.00416.78
8.0.210.0030.00316.93
8.0.200.0000.00616.94
8.0.190.0030.00616.88
8.0.180.0030.00316.87
8.0.170.0000.00816.98
8.0.160.0030.00416.91
8.0.150.0030.00316.86
8.0.140.0040.00416.90
8.0.130.0000.00513.34
8.0.120.0030.00616.92
8.0.110.0040.00416.94
8.0.100.0060.00216.93
8.0.90.0040.00417.02
8.0.80.0070.00616.88
8.0.70.0040.00416.94
8.0.60.0040.00316.81
8.0.50.0000.00716.83
8.0.30.0070.00917.06
8.0.20.0070.00917.23
8.0.10.0020.00516.98
8.0.00.0070.00716.99
7.4.330.0040.00415.03
7.4.320.0000.00616.60
7.4.300.0060.00316.54
7.4.290.0070.00316.44
7.4.280.0090.00516.56
7.4.270.0030.00316.46
7.4.260.0000.00716.46
7.4.250.0050.00316.34
7.4.240.0000.00716.56
7.4.230.0020.00516.40
7.4.220.0090.00316.55
7.4.210.0030.00816.48
7.4.200.0020.00516.38
7.4.190.0000.00616.62
7.4.180.0030.00316.70
7.4.160.0050.00716.41
7.4.150.0070.00517.00
7.4.140.0090.00717.41
7.4.130.0050.00916.53
7.4.120.0080.00516.43
7.4.110.0040.00916.23
7.4.100.0060.01016.53
7.4.90.0090.00316.55
7.4.80.0070.00717.92
7.4.70.0040.00816.28
7.4.60.0050.00716.43
7.4.50.0040.00316.43
7.4.40.0010.00716.38
7.4.30.0070.00716.42
7.4.20.0000.00716.38
7.4.10.0000.00716.39
7.4.00.0100.00215.38
7.3.330.0000.00713.37
7.3.320.0130.00013.23
7.3.310.0000.00716.29
7.3.300.0030.00316.22
7.3.290.0060.00716.29
7.3.280.0070.00516.33
7.3.270.0090.00416.86
7.3.260.0050.00716.41
7.3.250.0100.00516.47
7.3.240.0060.00716.39
7.3.230.0070.00616.44
7.3.220.0000.00816.22
7.3.210.0050.00816.45
7.3.200.0030.00817.88
7.3.190.0030.00816.35
7.3.180.0070.00416.36
7.3.170.0100.00516.46
7.3.160.0040.01016.46
7.3.150.0030.00516.29
7.3.140.0000.00716.38
7.3.130.0000.00716.27
7.3.120.0070.00515.61
7.3.110.0070.00515.57
7.3.100.0020.01015.36
7.3.90.0050.00515.84
7.3.80.0040.00815.60
7.3.70.0060.00415.69
7.3.60.0040.00715.72
7.3.50.0020.00915.52
7.3.40.0040.00615.57
7.3.30.0070.00515.64
7.3.20.0060.00517.54
7.3.10.0060.00617.27
7.3.00.0190.00616.70
7.2.340.0040.00316.39
7.2.330.0060.00616.38
7.2.320.0080.00516.39
7.2.310.0090.00216.40
7.2.300.0070.00516.35
7.2.290.0080.00516.41
7.2.280.0000.00716.32
7.2.270.0070.00016.38
7.2.260.0000.00816.30
7.2.250.0060.00715.78
7.2.240.0030.01015.79
7.2.230.0050.00615.61
7.2.220.0060.00515.68
7.2.210.0020.00615.64
7.2.200.0070.00415.76
7.2.190.0030.00815.76
7.2.180.0030.00815.65
7.2.170.0050.00815.74
7.2.160.0020.00516.43
7.2.150.0000.00718.46
7.2.140.0000.00718.48
7.2.130.0270.00416.64
7.2.120.0270.00716.75
7.2.110.0240.00816.88
7.2.100.0190.00616.26
7.2.90.0160.01116.28
7.2.80.0230.00616.26
7.2.70.0230.00816.25
7.2.60.0230.01016.31
7.2.50.0180.00916.20
7.2.40.0620.00816.82
7.2.30.0420.00916.83
7.2.20.0600.00716.84
7.2.10.0480.00916.78
7.2.00.0520.00917.28
7.1.330.0070.00416.55
7.1.320.0050.00516.56
7.1.310.0090.00216.64
7.1.300.0070.00316.51
7.1.290.0020.00916.50
7.1.280.0040.00416.36
7.1.270.0060.00616.54
7.1.260.0050.00716.53
7.1.250.0340.00515.60
7.1.240.0510.00515.54
7.1.230.0540.00715.52
7.1.220.0290.00514.85
7.1.210.0670.00815.03
7.1.200.0420.00615.22
7.1.190.0310.00314.97
7.1.180.0350.00414.88
7.1.170.0400.00514.88
7.1.160.0590.01115.68
7.1.150.0610.00915.66
7.1.140.0640.00815.74
7.1.130.0690.00815.69
7.1.120.0800.01315.69
7.1.110.0750.00615.40
7.1.100.0630.00915.82
7.1.90.0840.01015.40
7.1.80.0740.00915.40
7.1.70.0620.00615.43
7.1.60.0840.00924.75
7.1.50.0780.01324.28
7.1.40.0770.01025.51
7.1.30.0740.00925.61
7.1.20.0780.01125.71
7.1.10.0710.01014.72
7.1.00.0480.01916.10
7.0.330.0450.00515.01
7.0.320.0510.00515.32
7.0.310.0410.00814.61
7.0.300.0700.00614.58
7.0.290.0680.00915.13
7.0.280.0270.00714.71
7.0.270.0890.01015.33
7.0.260.0800.01015.43
7.0.250.0850.00615.23
7.0.240.1050.00715.22
7.0.230.0790.00915.07
7.0.220.0910.00715.14
7.0.210.0770.00914.72
7.0.200.0670.00514.79
7.0.190.0840.00714.70
7.0.180.1070.00814.54
7.0.170.0860.00714.53
7.0.160.1040.00914.48
7.0.150.0520.00814.49
7.0.140.0610.01315.80
7.0.130.0740.00914.72
7.0.120.0560.01014.56
7.0.110.0680.00714.56
7.0.100.0480.01515.47
7.0.90.0550.01915.50
7.0.80.0620.01315.50
7.0.70.0640.02115.43
7.0.60.0740.02215.26
7.0.50.0630.02115.45
7.0.40.0640.01515.58
7.0.30.0570.01715.52
7.0.20.0620.01515.53
7.0.10.0580.01715.50
7.0.00.0500.01315.48
5.6.400.0030.00315.66
5.6.390.0040.00415.64
5.6.380.0040.00914.66
5.6.370.0100.00414.59
5.6.360.0090.00714.67
5.6.350.0110.00614.71
5.6.340.0110.00414.64
5.6.330.0090.00714.80
5.6.320.0050.00914.71
5.6.310.0080.00714.83
5.6.300.0130.03117.17
5.6.290.0140.03117.05
5.6.280.0110.03717.84
5.6.270.0130.03317.27
5.6.260.0110.03317.27
5.6.250.0120.03717.83
5.6.240.0100.04317.74
5.6.230.0140.03917.80
5.6.220.0110.04217.76
5.6.210.0120.03717.72
5.6.200.0130.04217.88
5.6.190.0120.03717.83
5.6.180.0160.03517.83
5.6.170.0090.03617.86
5.6.160.0130.03717.85
5.6.150.0120.04217.80
5.6.140.0120.03717.83
5.6.130.0100.03717.82
5.6.120.0140.03417.79
5.6.110.0130.03217.87
5.6.100.0100.04417.74
5.6.90.0120.03617.78
5.6.80.0150.03017.52
5.6.70.0140.03617.41
5.6.60.0110.03917.49
5.6.50.0130.03717.41
5.6.40.0120.02917.52
5.6.30.0150.03117.46
5.6.20.0120.03317.49
5.6.10.0130.02917.47
5.6.00.0120.03717.48
5.5.380.0110.03615.59
5.5.370.0100.03015.53
5.5.360.0110.03115.57
5.5.350.0110.03915.46
5.5.340.0120.03815.80
5.5.330.0100.03115.76
5.5.320.0100.03015.81
5.5.310.0130.03015.75
5.5.300.0110.03215.74
5.5.290.0110.03315.65
5.5.280.0110.03515.63
5.5.270.0140.03415.78
5.5.260.0140.03215.78
5.5.250.0120.03315.67
5.5.240.0140.03615.46
5.5.230.0110.02715.49
5.5.220.0100.03215.40
5.5.210.0110.03215.50
5.5.200.0100.03215.38
5.5.190.0120.03415.38
5.5.180.0090.03415.47
5.5.170.0060.00813.49
5.5.160.0120.03615.40
5.5.150.0120.02615.39
5.5.140.0110.02715.39
5.5.130.0100.03215.40
5.5.120.0120.02915.35
5.5.110.0100.03115.39
5.5.100.0090.03015.35
5.5.90.0080.03915.38
5.5.80.0100.03615.40
5.5.70.0110.02915.28
5.5.60.0120.03415.40
5.5.50.0120.03715.39
5.5.40.0110.03115.35
5.5.30.0100.03415.41
5.5.20.0100.03515.43
5.5.10.0110.03615.36
5.5.00.0090.03015.39
5.4.450.0140.03115.46
5.4.440.0120.03515.45
5.4.430.0110.04015.50
5.4.420.0120.03215.50
5.4.410.0090.03315.38
5.4.400.0100.03015.29
5.4.390.0100.03315.22
5.4.380.0080.03415.26
5.4.370.0110.02615.24
5.4.360.0100.02915.25
5.4.350.0090.03115.24
5.4.340.0110.03215.23
5.4.330.0060.00511.53
5.4.320.0150.02915.26
5.4.310.0090.03115.26
5.4.300.0130.03415.37
5.4.290.0130.02815.28
5.4.280.0110.02615.24
5.4.270.0100.03415.29
5.4.260.0090.03015.29
5.4.250.0120.03515.32
5.4.240.0080.02915.17
5.4.230.0090.02715.14
5.4.220.0090.02915.23
5.4.210.0090.03415.27
5.4.200.0110.03615.21
5.4.190.0130.03515.21
5.4.180.0120.03415.23
5.4.170.0100.03215.32
5.4.160.0090.03215.23
5.4.150.0100.03315.16
5.4.140.0120.03214.05
5.4.130.0090.03414.01
5.4.120.0100.02913.98
5.4.110.0110.03314.01
5.4.100.0110.03014.09
5.4.90.0080.03214.01
5.4.80.0070.03114.00
5.4.70.0110.03113.94
5.4.60.0100.03014.02
5.4.50.0110.02614.00
5.4.40.0100.03113.91
5.4.30.0100.02914.05
5.4.20.0110.03214.02
5.4.10.0110.03114.01
5.4.00.0080.02413.74

preferences:
28.43 ms | 401 KiB | 5 Q