3v4l.org

run code in 300+ PHP versions simultaneously
<?php class zyf{ public $a=6; public $b; function zyf() { //创建构造方法, 也可以使用zyf() $this->a; } function add($a,$b){ $c=$a+$b; } } $xin = new zyf(); $xin->add(,4) ?>

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.110.0070.04716.50
5.4.100.0170.06716.52
5.4.90.0030.04016.52
5.4.80.0030.04716.45
5.4.70.0070.04316.37
5.4.60.0030.07716.51
5.4.50.0000.07716.28
5.4.40.0000.07716.31
5.4.30.0100.06716.44
5.4.20.0100.05716.25
5.4.10.0030.04016.30
5.4.00.0030.04015.94
5.3.210.0030.07014.71
5.3.200.0070.04014.56
5.3.190.0030.05714.62
5.3.180.0100.07014.61
5.3.170.0030.04714.58
5.3.160.0000.04714.59
5.3.150.0070.06014.63
5.3.140.0030.04714.61
5.3.130.0100.03714.60
5.3.120.0070.04314.61
5.3.110.0030.05014.55
5.3.100.0030.08014.06
5.3.90.0030.05014.04
5.3.80.0070.06314.02
5.3.70.0130.06714.06
5.3.60.0070.04714.00
5.3.50.0030.05014.00
5.3.40.0030.07714.09
5.3.30.0100.04313.90
5.3.20.0030.07713.58
5.3.10.0130.03313.73
5.3.00.0070.07313.66

preferences:
136.27 ms | 1394 KiB | 7 Q