3v4l.org

run code in 300+ PHP versions simultaneously
<?php function checknum($number){ if($number>1) { throw new Exception("value must be 1 or below"); } return true; } try{ checknum(3); echo "if you see this the num is 1 or below"; } catch (Exception $e) { echo "err msg:".$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.0090.00918.43
8.3.50.0170.00318.16
8.3.40.0080.00818.80
8.3.30.0140.00718.80
8.3.20.0080.00020.33
8.3.10.0050.00320.53
8.3.00.0030.00519.79
8.2.180.0100.00716.88
8.2.170.0070.01122.96
8.2.160.0100.00320.53
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0040.00422.16
8.2.110.0000.00820.52
8.2.100.0090.00318.03
8.2.90.0040.00419.09
8.2.80.0030.00617.97
8.2.70.0000.00817.74
8.2.60.0060.00617.66
8.2.50.0040.00418.07
8.2.40.0080.00018.16
8.2.30.0070.00019.13
8.2.20.0000.00717.65
8.2.10.0040.00418.16
8.2.00.0000.00717.67
8.1.270.0060.00323.89
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0030.00623.88
8.1.230.0090.00319.02
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0030.00617.48
8.1.190.0000.00817.23
8.1.180.0030.00519.14
8.1.170.0050.00518.57
8.1.160.0040.00422.02
8.1.150.0000.00718.85
8.1.140.0040.00417.32
8.1.130.0000.00717.87
8.1.120.0030.00417.47
8.1.110.0030.00317.34
8.1.100.0000.00717.45
8.1.90.0000.00817.48
8.1.80.0020.00517.45
8.1.70.0000.00717.44
8.1.60.0060.00317.52
8.1.50.0040.00417.43
8.1.40.0000.00817.40
8.1.30.0030.00617.59
8.1.20.0080.00017.64
8.1.10.0000.00717.57
8.1.00.0050.00317.49
8.0.300.0030.00618.77
8.0.290.0070.00016.75
8.0.280.0030.00318.39
8.0.270.0000.00717.19
8.0.260.0030.00317.13
8.0.250.0030.00317.02
8.0.240.0000.01017.06
8.0.230.0030.00316.90
8.0.220.0050.00216.86
8.0.210.0030.00516.95
8.0.200.0040.00416.90
8.0.190.0060.00316.89
8.0.180.0000.00816.98
8.0.170.0000.00816.99
8.0.160.0000.00717.04
8.0.150.0000.00716.94
8.0.140.0000.00716.91
8.0.130.0000.00613.42
8.0.120.0060.00317.00
8.0.110.0050.00316.96
8.0.100.0000.00716.76
8.0.90.0050.00216.83
8.0.80.0060.01617.00
8.0.70.0070.00016.91
8.0.60.0050.00216.80
8.0.50.0000.00816.84
8.0.30.0120.00917.04
8.0.20.0100.01517.40
8.0.10.0070.00016.95
8.0.00.0090.00816.84
7.4.330.0050.00015.15
7.4.320.0070.00016.69
7.4.300.0030.00316.53
7.4.290.0000.00616.46
7.4.280.0080.00016.51
7.4.270.0030.00316.52
7.4.260.0030.00616.39
7.4.250.0040.00416.57
7.4.240.0040.00416.53
7.4.230.0000.00716.50
7.4.220.0120.00816.54
7.4.210.0080.00616.56
7.4.200.0040.00416.49
7.4.160.0070.01016.57
7.4.150.0050.01817.40
7.4.140.0120.00617.86
7.4.130.0130.00316.69
7.4.120.0110.00916.50
7.4.110.0160.00016.60
7.4.100.0120.00416.45
7.4.90.0090.00916.50
7.4.80.0110.00716.55
7.4.70.0070.01016.38
7.4.60.0130.00316.32
7.4.50.0060.00316.39
7.4.40.0070.01116.57
7.4.30.0060.01016.48
7.4.00.0110.00414.71
7.3.330.0040.00413.23
7.3.320.0050.00013.34
7.3.310.0080.00016.32
7.3.300.0000.00716.37
7.3.290.0100.00416.38
7.3.280.0080.00916.41
7.3.270.0150.00617.40
7.3.260.0130.01316.39
7.3.250.0090.00916.55
7.3.240.0110.00616.38
7.3.230.0100.00616.39
7.3.210.0110.00616.41
7.3.200.0140.00319.39
7.3.190.0130.00316.59
7.3.180.0070.01016.57
7.3.170.0070.01116.72
7.3.160.0100.00516.49
7.2.330.0120.01116.66
7.2.320.0070.01416.70
7.2.310.0060.01316.78
7.2.300.0100.00716.65
7.2.290.0040.01916.71
7.2.00.0100.01019.40
7.1.100.0030.01318.32
7.1.70.0050.00217.19
7.1.60.0030.02119.32
7.1.50.0070.01716.52
7.1.00.0100.07022.52
7.0.200.0000.00716.80
7.0.140.0000.07722.07
7.0.60.0200.06719.86
7.0.50.0000.05017.86
7.0.40.0030.07719.97
7.0.30.0300.08020.24
7.0.20.0270.07720.24
7.0.10.0070.08720.08
7.0.00.0070.04320.09
5.6.280.0030.07720.90
5.6.210.0030.08720.70
5.6.200.0100.08718.27
5.6.190.0100.06720.61
5.6.180.0270.05020.63
5.6.170.0200.09020.44
5.6.160.0130.07720.55
5.6.150.0130.08018.18
5.6.140.0070.05018.15
5.6.130.0170.07018.15
5.6.120.0030.04021.14
5.6.110.0070.06320.99
5.6.100.0070.05321.04
5.6.90.0100.03721.13
5.6.80.0030.05720.41
5.5.350.3170.03320.36
5.5.340.0100.07718.07
5.5.330.0070.06720.40
5.5.320.0270.03320.35
5.5.310.0330.06720.36
5.5.300.0130.05718.09
5.5.290.0100.07318.02
5.5.280.0000.04320.76
5.5.270.0030.04320.87
5.5.260.0070.08320.64
5.5.250.0030.08320.58
5.5.240.0230.07320.16
5.4.450.3530.04319.55
5.4.440.3500.04719.39
5.4.430.3670.03319.41
5.4.420.3330.03319.19
5.4.410.3570.04019.29
5.4.400.3570.04019.23
5.4.390.3400.03318.87
5.4.380.3330.03319.09
5.4.370.3570.03718.86
5.4.360.3530.03319.25
5.4.350.3530.04018.95
5.4.340.3330.03319.14
5.4.320.3530.04319.14
5.4.310.3600.03019.14
5.4.300.3000.03019.22
5.4.290.3530.04019.31
5.4.280.3270.04019.30
5.4.270.3570.04319.16
5.4.260.3600.03319.15
5.4.250.3570.04018.98
5.4.240.3300.03319.13
5.4.230.3200.03019.12
5.4.220.3400.03718.86
5.4.210.3170.03319.05
5.4.200.3230.03018.86
5.4.190.3400.03719.18
5.4.180.3570.03019.07
5.4.170.3070.03319.14
5.4.160.3430.04319.30
5.4.150.3670.04719.14
5.4.140.3200.04016.38
5.4.130.3470.03316.30
5.4.120.3430.04016.34
5.4.110.3270.03716.35
5.4.100.3630.02716.38
5.4.90.3430.04016.56
5.4.80.4500.03716.26
5.4.70.3570.03316.36
5.4.60.3600.03716.16
5.4.50.3670.03716.48
5.4.40.3570.03016.37
5.4.30.3370.03316.53
5.4.20.3430.03316.42
5.4.10.3500.04016.55
5.4.00.3570.03315.79
5.3.290.3470.03314.75
5.3.280.2870.03714.64
5.3.270.3430.03314.63
5.3.260.3570.03714.82
5.3.250.3600.04014.59
5.3.240.3900.03714.76
5.3.230.3370.03714.51
5.3.220.3630.03714.49
5.3.210.3600.03714.61
5.3.200.3270.03714.57
5.3.190.3600.03014.58
5.3.180.4370.03714.64
5.3.170.3570.04014.54
5.3.160.3630.04014.65
5.3.150.3570.04014.56
5.3.140.3830.04714.63
5.3.130.3830.03714.67
5.3.120.3470.04014.52
5.3.110.3570.04014.52
5.3.100.3330.03314.04
5.3.90.3370.03013.95
5.3.80.3370.03013.94
5.3.70.3530.04014.09
5.3.60.4470.02714.12
5.3.50.3500.04313.86
5.3.40.3830.05014.03
5.3.30.3630.02713.83
5.3.20.3400.03313.62
5.3.10.3670.03013.58
5.3.00.3430.02713.61
5.2.170.2730.03011.07
5.2.160.3100.02011.16
5.2.150.3030.02711.05
5.2.140.2970.02711.22
5.2.130.2770.02711.03
5.2.120.2330.03711.01
5.2.110.3070.02711.00
5.2.100.3000.03011.22
5.2.90.3170.03311.08
5.2.80.3070.03011.10
5.2.70.3030.03311.07
5.2.60.3100.02711.05
5.2.50.3070.02010.93
5.2.40.2530.03711.07
5.2.30.2430.02711.13
5.2.20.2200.03310.93
5.2.10.2400.03010.97
5.2.00.2500.02710.71
5.1.60.2430.02710.07
5.1.50.2470.0239.97
5.1.40.2470.02710.03
5.1.30.2500.02710.26
5.1.20.2530.02310.26
5.1.10.2430.02710.00
5.1.00.2230.02310.05
5.0.50.1400.0208.47
5.0.40.1300.0238.53
5.0.30.1330.0338.23
5.0.20.1300.0208.13
5.0.10.1130.0208.15
5.0.00.1200.0308.38
4.4.90.1400.0207.21
4.4.80.1400.0137.21
4.4.70.1370.0177.21
4.4.60.1130.0137.21
4.4.50.1100.0137.21
4.4.40.1330.0307.21
4.4.30.1170.0107.21
4.4.20.1200.0207.21
4.4.10.1070.0177.21
4.4.00.1270.0237.21
4.3.110.1230.0207.21
4.3.100.1100.0137.21
4.3.90.1200.0137.21
4.3.80.1370.0307.21
4.3.70.1300.0207.21
4.3.60.1300.0177.21
4.3.50.1230.0207.21
4.3.40.1230.0277.21
4.3.30.0530.0137.21
4.3.20.0600.0177.21
4.3.10.0630.0177.21
4.3.00.0800.0207.21

preferences:
61.67 ms | 400 KiB | 5 Q