3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 1.23456789; $b = 1.23456780; $epsilon = 0.00001 if(abs($a-$b) < $epsilon) { echo "true"; }

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.340.1930.03319.31
5.4.320.1870.03318.95
5.4.310.1830.03718.98
5.4.300.1830.03719.00
5.4.290.1830.03719.30
5.4.280.1930.03719.16
5.4.270.2030.04319.24
5.4.260.1930.03718.96
5.4.250.2000.03319.14
5.4.240.1970.04318.97
5.4.230.1830.03319.08
5.4.220.1900.03718.84
5.4.210.2070.04318.99
5.4.200.1870.03718.98
5.4.190.1930.04018.97
5.4.180.1970.02318.94
5.4.170.1970.03718.82
5.4.160.2000.04319.06
5.4.150.2070.04318.97
5.4.140.1730.03316.41
5.4.130.1900.02316.46
5.4.120.1730.04016.29
5.4.110.2030.03316.25
5.4.100.1730.03716.25
5.4.90.1900.03316.54
5.4.80.1900.03716.34
5.4.70.1770.03716.27
5.4.60.2100.03716.54
5.4.50.2000.03316.38
5.4.40.1800.04016.34
5.4.30.1830.03316.38
5.4.20.1870.03316.38
5.4.10.2000.03016.51
5.4.00.1770.03315.76
5.3.290.2130.04014.52
5.3.280.2030.03714.53
5.3.270.1970.03714.56
5.3.260.2030.03714.47
5.3.250.1830.03714.55
5.3.240.1800.03714.55
5.3.230.1700.03314.55
5.3.220.1370.03714.52
5.3.210.1570.04314.55
5.3.200.1830.03014.41
5.3.190.1900.04014.43
5.3.180.1770.03714.40
5.3.170.1500.03714.50
5.3.160.1800.03314.61
5.3.150.1870.03714.42
5.3.140.1970.03314.54
5.3.130.1700.03314.48
5.3.120.1630.04014.38
5.3.110.1630.03714.53
5.3.100.1930.03714.13
5.3.90.1800.03713.98
5.3.80.1930.03313.87
5.3.70.1430.03714.03
5.3.60.1800.03713.80
5.3.50.1700.03313.79
5.3.40.1630.03713.89
5.3.30.1800.04013.86
5.3.20.1970.02313.66
5.3.10.1870.04013.50
5.3.00.1870.02713.51
5.2.170.1670.03011.06
5.2.160.1500.03010.99
5.2.150.1770.03010.98
5.2.140.1670.03310.98
5.2.130.1700.03711.15
5.2.120.1530.02711.04
5.2.110.1730.03010.97
5.2.100.0000.06710.95
5.2.90.0030.04310.96
5.2.80.0070.04711.04
5.2.70.0030.03010.98
5.2.60.1300.02711.06
5.2.50.1570.02711.03
5.2.40.1300.02310.88
5.2.30.1070.03011.12
5.2.20.1600.02010.79
5.2.10.1430.02710.90
5.2.00.1200.03010.69
5.1.60.1170.0279.98
5.1.50.1370.0279.96
5.1.40.1400.0239.97
5.1.30.1230.02710.26
5.1.20.1230.02710.25
5.1.10.1270.02010.04
5.1.00.1200.0279.96
5.0.50.0730.0238.46
5.0.40.0770.0238.39
5.0.30.0670.0308.12
5.0.20.0630.0208.07
5.0.10.0830.0308.24
5.0.00.0600.0408.30
4.4.90.0630.0137.59
4.4.80.0730.0207.59
4.4.70.0630.0207.59
4.4.60.0800.0177.59
4.4.50.0630.0177.59
4.4.40.0730.0277.59
4.4.30.0730.0107.59
4.4.20.0730.0207.59
4.4.10.0730.0207.59
4.4.00.0970.0337.59
4.3.110.0870.0207.59
4.3.100.0970.0177.59
4.3.90.0800.0237.59
4.3.80.0730.0237.59
4.3.70.0930.0277.59
4.3.60.1000.0237.59
4.3.50.0930.0237.59
4.3.40.1070.0277.59
4.3.30.0470.0177.59
4.3.20.0370.0177.59
4.3.10.0470.0307.59
4.3.00.0500.0177.59

preferences:
142.03 ms | 1394 KiB | 7 Q