3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { { /** * @JMS\Type("double") * * @var float */ protected $price; /** * @JMS\Type("string") * * @var string */ protected $priceTag; /** * @JMS\Type("DateTime<'h:i'>") * * @var \DateTime */ protected $time; /** * @param float $price * * @return $this */ public function setPrice($price) { $this->price = $price; return $this; } /** * @return float */ public function getPrice() { return $this->price; } /** * @param string $priceTag * * @return $this */ public function setPriceTag($priceTag) { $this->priceTag = $priceTag; return $this; } /** * @return string */ public function getPriceTag() { return $this->priceTag; } /** * @param \DateTime $time * * @return $this */ public function setTime($time) { $this->time = $time; return $this; } /** * @return \DateTime */ public function getTime() { return $this->time; } } $foo = new MyClass(); $foo->setPriceTag('test1'); $bar = new MyClass(); $bar->setPriceTag('test1'); $bam = new MyClass(); $bam->setPriceTag('test2'); $test = array($foo, $bar, $bam); print_r(array_unique($test, SORT_REGULAR));

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.310.0070.03712.50
5.4.300.0040.03812.51
5.4.290.0050.04012.50
5.4.280.0110.03012.40
5.4.270.0070.03412.40
5.4.260.0050.03812.40
5.4.250.0090.03512.40
5.4.240.0050.03712.40
5.4.230.0050.03712.39
5.4.220.0050.03712.39
5.4.210.0040.03612.39
5.4.200.0090.03712.39
5.4.190.0080.03412.39
5.4.180.0050.03612.39
5.4.170.0050.03712.39
5.4.160.0050.04212.39
5.4.150.0040.03812.39
5.4.140.0040.04112.08
5.4.130.0040.03712.06
5.4.120.0060.03412.03
5.4.110.0050.03512.02
5.4.100.0040.03612.02
5.4.90.0050.03912.02
5.4.80.0050.03912.02
5.4.70.0070.04112.02
5.4.60.0060.03512.02
5.4.50.0060.03612.02
5.4.40.0080.03312.01
5.4.30.0040.03712.01
5.4.20.0080.03412.00
5.4.10.0100.03212.00
5.4.00.0040.03811.50
5.3.280.0060.03712.71
5.3.270.0060.03912.72
5.3.260.0050.03912.72
5.3.250.0080.03512.71
5.3.240.0060.03612.72
5.3.230.0080.03412.71
5.3.220.0060.03712.68
5.3.210.0060.04712.68
5.3.200.0070.03612.68
5.3.190.0040.04012.68
5.3.180.0100.03212.68
5.3.170.0040.03812.66
5.3.160.0060.03612.67
5.3.150.0040.04012.67
5.3.140.0050.03712.66
5.3.130.0060.03812.66
5.3.120.0060.03912.66
5.3.110.0040.04112.66
5.3.100.0060.03712.12
5.3.90.0040.03912.10
5.3.80.0050.03712.09
5.3.70.0060.03812.09
5.3.60.0080.03412.07
5.3.50.0080.03312.02
5.3.40.0070.04012.02
5.3.30.0060.04111.98
5.3.20.0050.03711.76
5.3.10.0070.03311.73
5.3.00.0080.03511.71

preferences:
140.44 ms | 1394 KiB | 7 Q