3v4l.org

run code in 300+ PHP versions simultaneously
<?php $int = 42; if( is_numeric($int) && $int >= 0 ) { echo "Goed"; } else { echo "Fout"; ?>

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.4170.04019.00
5.4.310.4330.04719.11
5.4.300.4100.03719.11
5.4.290.4430.03718.85
5.4.280.4170.04019.10
5.4.270.4400.04318.89
5.4.260.4370.03718.84
5.4.250.4600.03018.95
5.4.240.4000.04319.02
5.4.230.3530.03019.15
5.4.220.3900.03719.10
5.4.210.3670.03719.07
5.4.200.3930.04019.20
5.4.190.4100.04319.04
5.4.180.4030.04018.88
5.4.170.4000.04018.96
5.4.160.0130.04719.00
5.4.150.0030.05318.93
5.4.140.4400.03316.45
5.4.130.4030.04016.26
5.4.120.3500.03716.44
5.4.110.4270.03716.09
5.4.100.4300.03316.27
5.4.90.5570.03716.54
5.4.80.3770.04016.28
5.4.70.3600.03716.18
5.4.60.3800.03316.16
5.4.50.0030.04016.27
5.4.40.3930.03016.43
5.4.30.4130.04016.16
5.4.20.3870.04016.24
5.4.10.3770.03016.30
5.4.00.3930.04015.66
5.3.290.3970.02714.61
5.3.280.3930.03014.54
5.3.270.4070.04014.54
5.3.260.0030.07714.56
5.3.250.3230.04014.62
5.3.240.4430.03714.58
5.3.230.4370.04014.69
5.3.220.3830.04014.45
5.3.210.4500.04314.36
5.3.200.4570.03314.66
5.3.190.4130.03314.50
5.3.180.3930.03714.65
5.3.170.4100.04314.51
5.3.160.1770.04014.35
5.3.150.0070.07714.49
5.3.140.0170.05714.64
5.3.130.4130.03714.47
5.3.120.3830.03714.64
5.3.110.3970.03714.43
5.3.100.3670.04013.96
5.3.90.4070.03313.99
5.3.80.4100.03713.94
5.3.70.4470.03713.96
5.3.60.4330.03314.09
5.3.50.3830.03313.88
5.3.40.3800.03313.76
5.3.30.4200.03014.00
5.3.20.3730.03313.51
5.3.10.4100.03713.48
5.3.00.3730.03313.57
5.2.170.3100.03711.30
5.2.160.3330.03011.08
5.2.150.2730.03011.03
5.2.140.2970.02311.12
5.2.130.3830.03011.18
5.2.120.4270.03711.08
5.2.110.3370.02711.11
5.2.100.3830.02710.98
5.2.90.3230.02711.00
5.2.80.2930.03011.00
5.2.70.3230.03311.04
5.2.60.3300.02711.01
5.2.50.3100.03310.95
5.2.40.2330.02710.87
5.2.30.2300.03310.85
5.2.20.2300.03310.96
5.2.10.2400.02710.74
5.2.00.2300.03010.71
5.1.60.2330.03010.01
5.1.50.2430.0239.96
5.1.40.2300.02710.04
5.1.30.2070.02710.29
5.1.20.2200.02710.30
5.1.10.2400.02710.04
5.1.00.2370.02310.06
5.0.50.1230.0208.59
5.0.40.0970.0178.31
5.0.30.1230.0308.18
5.0.20.1230.0178.11
5.0.10.1330.0238.31
5.0.00.1200.0308.15
4.4.90.1530.0206.12
4.4.80.1470.0206.12
4.4.70.1300.0176.12
4.4.60.1230.0176.12
4.4.50.1330.0136.12
4.4.40.1200.0236.12
4.4.30.1170.0176.12
4.4.20.1200.0206.12
4.4.10.1230.0136.12
4.4.00.1300.0276.12
4.3.110.1330.0206.12
4.3.100.1270.0136.12
4.3.90.1000.0136.12
4.3.80.1200.0206.12
4.3.70.1200.0136.12
4.3.60.1170.0136.12
4.3.50.0930.0136.12
4.3.40.1170.0276.12
4.3.30.0630.0136.12
4.3.20.0600.0136.12
4.3.10.0600.0136.12
4.3.00.0600.0136.12

preferences:
137.97 ms | 1394 KiB | 7 Q