3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Math{ //两个数值比较大小. public function Max($a,$b) { return $a>$b?$a:$b; } //三个数值比较大小. public function Max($a,$b,$c) { $a = $this->Max($a,$b); return $this->Max($a,$c); } } $math = new Math(); echo "最大值是 ".$math->Max(99,100,88); ?>

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.130.0170.04316.49
5.4.120.0170.06716.33
5.4.110.0270.06016.58
5.4.100.0270.05716.35
5.4.90.0230.03316.36
5.4.80.0270.05716.39
5.4.70.0200.03016.57
5.4.60.0200.06716.23
5.4.50.0200.06016.54
5.4.40.0230.04016.56
5.4.30.0270.06316.42
5.4.20.0300.06016.42
5.4.10.0270.03716.42
5.4.00.0230.05015.93
5.3.230.0200.04714.74
5.3.220.0230.05714.55
5.3.210.0200.08314.55
5.3.200.0230.03314.71
5.3.190.0230.03314.64
5.3.180.0200.03314.57
5.3.170.0300.03714.68
5.3.160.0200.03714.64
5.3.150.0270.03014.58
5.3.140.0230.04314.55
5.3.130.0100.04714.60
5.3.120.0230.03314.54
5.3.110.0170.04014.59
5.3.100.0170.05014.01
5.3.90.0230.03313.93
5.3.80.0200.04313.92
5.3.70.0100.04713.94
5.3.60.0230.03014.05
5.3.50.0230.03013.86
5.3.40.0130.04713.86
5.3.30.0200.03313.96
5.3.20.0200.05013.66
5.3.10.0200.03013.73
5.3.00.0200.03313.71

preferences:
137.4 ms | 1398 KiB | 7 Q