3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace 'Hello'; class HelloWorld { private $name; function __construct($name) { $this->name = $name; } public function sayHello() { return 'Hello' . $this->name; } } $hw = new HelloWorld(); echo $hw->sayHello();

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.250.0100.05018.99
5.4.240.0100.06018.96
5.4.230.0100.05018.63
5.4.220.0070.05318.74
5.4.210.0030.06018.99
5.4.200.0130.05718.74
5.4.190.0070.07018.62
5.4.180.0200.04018.62
5.4.170.0100.06718.88
5.4.160.0170.05018.92
5.4.150.0130.05318.94
5.4.140.0000.05716.39
5.4.130.0100.04716.34
5.4.120.0030.05716.58
5.4.110.0070.05016.50
5.4.100.0130.04016.51
5.4.90.0130.04316.41
5.4.80.0330.04716.44
5.4.70.0130.04316.53
5.4.60.0030.05316.37
5.4.50.0000.05316.44
5.4.40.0100.05016.42
5.4.30.0100.04716.41
5.4.20.0070.05016.28
5.4.10.0100.04716.45
5.4.00.0070.04715.95
5.3.280.0070.05314.46
5.3.270.0100.05014.62
5.3.260.0000.06014.61
5.3.250.0100.04714.48
5.3.240.0130.04314.61
5.3.230.0130.05014.43
5.3.220.0070.06014.49
5.3.210.0070.05314.36
5.3.200.0070.04714.61
5.3.190.0000.06014.61
5.3.180.0130.04314.40
5.3.170.0130.06014.45
5.3.160.0030.05014.57
5.3.150.0130.04314.44
5.3.140.0070.04714.67
5.3.130.0100.05014.54
5.3.120.0100.05014.54
5.3.110.0230.04714.55
5.3.100.0030.05314.19
5.3.90.0030.07314.03
5.3.80.0170.04313.90
5.3.70.0030.05013.88
5.3.60.0070.05014.00
5.3.50.0030.06313.96
5.3.40.0070.04713.72
5.3.30.0100.04713.93
5.3.20.0100.04313.71
5.3.10.0070.04713.50
5.3.00.0130.04313.63

preferences:
146.83 ms | 1394 KiB | 7 Q