3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Person { private $name; private $age; function __construct($name, $age) { $this->name=$name; $this->age=$age; } function say() { echo "我的名字叫:".$this->name."<br />"; echo "我的年龄是:".$this->age; }}$p1 = new Person("张三", 20);p1->say();$p2 = clone $p1;$p2->say();?>

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.260.0070.07018.94
5.4.250.0030.05718.75
5.4.240.0030.05718.91
5.4.230.0030.05718.74
5.4.220.0130.05318.95
5.4.210.0130.04718.96
5.4.200.0170.04318.95
5.4.190.0130.05018.92
5.4.180.0100.07018.99
5.4.170.0070.07018.96
5.4.160.0100.07318.73
5.4.150.0130.04718.74
5.4.140.0070.05316.53
5.4.130.0070.06316.43
5.4.120.0100.04716.30
5.4.110.0130.04316.50
5.4.100.0070.06716.61
5.4.90.0070.05016.54
5.4.80.0070.05016.66
5.4.70.0000.05716.42
5.4.60.0000.05316.45
5.4.50.0070.05016.36
5.4.40.0130.04716.45
5.4.30.0070.06316.34
5.4.20.0030.05016.44
5.4.10.0070.05316.37
5.4.00.0100.06715.98
5.3.280.0070.05314.78
5.3.270.0100.05314.68
5.3.260.0000.06014.78
5.3.250.0070.05714.70
5.3.240.0100.07314.44
5.3.230.0130.05014.62
5.3.220.0100.05014.58
5.3.210.0100.04714.54
5.3.200.0030.05314.66
5.3.190.0070.05014.81
5.3.180.0070.05014.48
5.3.170.0000.05314.57
5.3.160.0030.05714.59
5.3.150.0130.04314.60
5.3.140.0030.05014.65
5.3.130.0130.05314.64
5.3.120.0130.04314.56
5.3.110.0170.04314.69
5.3.100.0000.05714.05
5.3.90.0130.07014.01
5.3.80.0000.05714.12
5.3.70.0070.05313.86
5.3.60.0100.04714.02
5.3.50.0070.04714.03
5.3.40.0030.05014.18
5.3.30.0070.05013.98
5.3.20.0100.04313.91
5.3.10.0070.05313.73
5.3.00.0100.04313.71

preferences:
142.04 ms | 1386 KiB | 7 Q