3v4l.org

run code in 300+ PHP versions simultaneously
<?php class String { private $string; public function__construct($string) { $this->string = $string; } } class Clazz { private $a; private $b; private $c; private $d; private $e; public function __construct(String $a, String $b, String $c, String $d, String $e) { $this->a = $a; $this->b = $b; $this->c = $c; $this->d = $d; $this->e = $e; } } $classes = array(); for ($i = 0; $i < 50000, $i++) { $classes[] = new Clazz(new String('a'), new String('b'), new String('c'), new String('d'), new String('e')); }

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.190.0030.07718.86
5.4.180.0070.03719.20
5.4.170.0130.06319.23
5.4.160.0000.04318.83
5.4.150.0030.04018.83
5.4.140.0030.08016.34
5.4.130.0070.07016.39
5.4.120.0130.07016.33
5.4.110.0100.03016.55
5.4.100.0070.04316.55
5.4.90.0000.06716.58
5.4.80.0070.05716.44
5.4.70.0100.06716.45
5.4.60.0100.06316.38
5.4.50.0030.03716.40
5.4.40.0100.06716.37
5.4.30.0000.07716.30
5.4.20.0070.06716.26
5.4.10.0030.04716.36
5.4.00.0030.05315.84
5.3.270.0100.07314.64
5.3.260.0070.03714.76
5.3.250.0030.08014.65
5.3.240.0000.04014.62
5.3.230.0100.07314.62
5.3.220.0070.05314.59
5.3.210.0070.06314.56
5.3.200.0070.06714.72
5.3.190.0030.08014.59
5.3.180.0100.04314.45
5.3.170.0000.05714.72
5.3.160.0070.07314.72
5.3.150.0130.03714.56
5.3.140.0000.04314.54
5.3.130.0100.05314.57
5.3.120.0000.08014.54
5.3.110.0070.07014.57
5.3.100.0030.04014.20
5.3.90.0030.03714.05
5.3.80.0030.04714.07
5.3.70.0000.08014.06
5.3.60.0070.07313.96
5.3.50.0100.06313.97
5.3.40.0030.08013.94
5.3.30.0070.07713.91
5.3.20.0070.03713.76
5.3.10.0100.05713.70
5.3.00.0070.06713.63

preferences:
142.7 ms | 1394 KiB | 7 Q