3v4l.org

run code in 300+ PHP versions simultaneously
<?php function checknum($number) if($number>1) { trow new exception("value must be 1 or below"); } return true; } checknum(3);

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)
5.4.320.4930.03319.23
5.4.310.4800.04018.95
5.4.300.4800.03318.97
5.4.290.4170.03319.13
5.4.280.4130.03318.93
5.4.270.4900.03319.22
5.4.260.4600.04319.13
5.4.250.4800.03319.03
5.4.240.4700.03719.16
5.4.230.4230.04319.19
5.4.220.4370.03719.14
5.4.210.4630.03318.98
5.4.200.4930.03319.05
5.4.190.4130.03319.09
5.4.180.4400.03719.21
5.4.170.4870.03719.12
5.4.160.4070.03719.14
5.4.150.4470.05019.11
5.4.140.4500.03316.40
5.4.130.4030.02316.46
5.4.120.4770.03016.37
5.4.110.4700.03716.64
5.4.100.2270.04316.35
5.4.90.2670.03716.32
5.4.80.3030.03316.50
5.4.70.3500.03716.46
5.4.60.3400.03316.53
5.4.50.3500.03316.49
5.4.40.3670.04016.47
5.4.30.3270.03316.50
5.4.20.3300.03716.49
5.4.10.3870.03316.42
5.4.00.4000.04015.73
5.3.290.4570.03014.66
5.3.280.4730.02714.65
5.3.270.4870.04314.61
5.3.260.3670.03314.62
5.3.250.5070.02714.66
5.3.240.4770.03314.77
5.3.230.4670.03314.60
5.3.220.4700.03314.49
5.3.210.4830.04314.60
5.3.200.4870.05014.57
5.3.190.2070.03314.56
5.3.180.3630.03714.48
5.3.170.3770.03714.62
5.3.160.2230.03714.60
5.3.150.3070.03714.61
5.3.140.3230.04014.58
5.3.130.2900.03714.59
5.3.120.3230.04014.55
5.3.110.3900.05014.62
5.3.100.4000.04314.07
5.3.90.4100.04014.07
5.3.80.3930.03714.16
5.3.70.4030.04014.01
5.3.60.4330.03014.00
5.3.50.4400.03313.86
5.3.40.5200.04013.88
5.3.30.4930.03013.88
5.3.20.4730.04013.74
5.3.10.3930.03713.67
5.3.00.4170.02713.60
5.2.170.4030.03311.29
5.2.160.4230.02311.15
5.2.150.3570.03311.20
5.2.140.3700.03011.21
5.2.130.3370.02711.09
5.2.120.3470.02311.06
5.2.110.3830.03011.14
5.2.100.1300.03711.11
5.2.90.0030.04011.16
5.2.80.0100.05711.14
5.2.70.0000.06011.05
5.2.60.3200.03711.04
5.2.50.3030.02711.01
5.2.40.2930.02310.91
5.2.30.2470.03011.03
5.2.20.2400.02311.11
5.2.10.3400.03710.91
5.2.00.3330.02310.86
5.1.60.3270.02310.05
5.1.50.3230.02710.06
5.1.40.3030.02710.02
5.1.30.3200.02310.48
5.1.20.3370.02310.49
5.1.10.3170.02710.11
5.1.00.3400.02310.02
5.0.50.1900.0208.45
5.0.40.1570.0208.32
5.0.30.1530.0308.24
5.0.20.1600.0238.17
5.0.10.0070.0438.15
5.0.00.0100.0508.29
4.4.90.0000.0205.86
4.4.80.1570.0205.87
4.4.70.1470.0135.92
4.4.60.1430.0175.80
4.4.50.1600.0175.85
4.4.40.1930.0205.88
4.4.30.1600.0135.86
4.4.20.1570.0135.88
4.4.10.1670.0135.85
4.4.00.1600.0235.80
4.3.110.1870.0175.81
4.3.100.1700.0175.69
4.3.90.0000.0205.71
4.3.80.0000.0405.72
4.3.70.0000.0235.80
4.3.60.0070.0335.79
4.3.50.0070.0335.71
4.3.40.0000.0575.72
4.3.30.0030.0374.65
4.3.20.0000.0304.65
4.3.10.0000.0304.65
4.3.00.0070.0274.65

preferences:
139.19 ms | 1398 KiB | 7 Q