3v4l.org

run code in 300+ PHP versions simultaneously
<?php a = 9.2; $b = 10.02; $a = ceil($a); $b = floor($b); echo $a == $b 'equal' : 'not equal';

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.310.0030.07319.31
5.4.300.0030.04718.96
5.4.290.0070.07318.85
5.4.280.0030.04319.23
5.4.270.0030.04319.23
5.4.260.0000.07318.99
5.4.250.0030.07719.14
5.4.240.0100.06719.31
5.4.230.0070.06019.07
5.4.220.0030.04718.86
5.4.210.0000.08319.18
5.4.200.0070.06018.86
5.4.190.0070.07018.97
5.4.180.0030.05719.20
5.4.170.0030.07719.18
5.4.160.0030.04318.97
5.4.150.0070.05719.05
5.4.140.0070.04316.46
5.4.130.0000.07316.32
5.4.120.0000.07316.41
5.4.110.0070.04016.54
5.4.100.0030.03316.27
5.4.90.0070.06716.40
5.4.80.0000.06016.52
5.4.70.0030.07316.59
5.4.60.0030.04316.16
5.4.50.0000.07316.42
5.4.40.0030.05716.48
5.4.30.0000.04316.48
5.4.20.0030.07016.32
5.4.10.0000.07716.24
5.4.00.0000.05016.11
5.3.280.0000.07714.43
5.3.270.0000.05014.55
5.3.260.0000.07714.58
5.3.250.0070.04714.43
5.3.240.0000.06314.65
5.3.230.0100.03714.47
5.3.220.0100.05014.65
5.3.210.0000.08314.43
5.3.200.0000.06314.43
5.3.190.0100.04314.42
5.3.180.0000.07314.40
5.3.170.0000.07714.47
5.3.160.0070.07014.52
5.3.150.0000.05014.51
5.3.140.0000.07714.41
5.3.130.0030.03714.52
5.3.120.0030.08014.57
5.3.110.0030.07314.59
5.3.100.0030.04713.88
5.3.90.0030.07713.95
5.3.80.0030.07313.99
5.3.70.0000.07713.94
5.3.60.0070.06313.94
5.3.50.0030.06313.98
5.3.40.0070.03713.88
5.3.30.0130.04313.86
5.3.20.0030.05713.86
5.3.10.0000.05013.86
5.3.00.0030.07713.86
5.2.170.0070.06013.86
5.2.160.0030.03313.86
5.2.150.0030.06013.86
5.2.140.0000.03713.86
5.2.130.0000.03713.86
5.2.120.0070.05713.86
5.2.110.0000.06013.86
5.2.100.0030.05713.86
5.2.90.0000.03013.86
5.2.80.0000.04313.86
5.2.70.0000.05013.86
5.2.60.0030.03313.86
5.2.50.0000.04013.86
5.2.40.0030.03313.86
5.2.30.0030.06013.86
5.2.20.0070.03713.86
5.2.10.0030.05313.87
5.2.00.0070.06013.87
5.1.60.0030.05313.87
5.1.50.0030.04013.87
5.1.40.0000.05013.87
5.1.30.0000.05013.87
5.1.20.0000.05713.87
5.1.10.0000.03313.87
5.1.00.0000.06013.87
5.0.50.0070.04013.87
5.0.40.0000.02013.87
5.0.30.0000.05713.87
5.0.20.0070.03313.87
5.0.10.0000.02313.87
5.0.00.0030.06013.87
4.4.90.0000.02713.86
4.4.80.0030.03313.86
4.4.70.0030.02013.86
4.4.60.0030.01713.86
4.4.50.0030.03313.87
4.4.40.0030.04013.87
4.4.30.0000.03013.87
4.4.20.0000.03713.87
4.4.10.0000.02313.87
4.4.00.0070.03013.87
4.3.110.0000.01713.87
4.3.100.0030.01713.87
4.3.90.0030.03313.87
4.3.80.0000.03313.87
4.3.70.0000.01713.87
4.3.60.0000.01713.87
4.3.50.0000.01713.87
4.3.40.0000.04713.87
4.3.30.0000.02013.87
4.3.20.0000.02313.87
4.3.10.0030.03313.87
4.3.00.0000.02013.87

preferences:
142.86 ms | 1394 KiB | 7 Q