3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static function doStuff($x) { return array($x, $x+1, $x+2, $x+3); } } class Bar { private $data = Foo::doStuff(10); public function getData() {return $this->data;} } $b = new Bar(); var_dump($b->getData());

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.340.0070.04112.03
5.4.320.0060.04412.51
5.4.310.0040.04012.51
5.4.300.0060.03612.52
5.4.290.0100.03412.52
5.4.280.0060.03912.41
5.4.270.0030.04012.41
5.4.260.0050.03812.41
5.4.250.0050.03812.41
5.4.240.0080.03412.41
5.4.230.0050.04012.40
5.4.220.0090.03312.40
5.4.210.0050.03612.40
5.4.200.0070.04012.40
5.4.190.0080.03612.40
5.4.180.0050.03912.39
5.4.170.0090.03312.40
5.4.160.0090.03512.40
5.4.150.0080.03912.39
5.4.140.0070.04612.09
5.4.130.0060.03512.07
5.4.120.0100.03612.03
5.4.110.0050.03912.04
5.4.100.0070.03612.03
5.4.90.0020.04712.03
5.4.80.0050.04412.03
5.4.70.0040.03912.02
5.4.60.0040.04012.03
5.4.50.0090.04212.03
5.4.40.0060.03912.02
5.4.30.0120.03712.01
5.4.20.0040.03812.00
5.4.10.0120.03312.01
5.4.00.0030.04411.50
5.3.290.0070.04712.80
5.3.280.0050.04312.71
5.3.270.0090.03912.72
5.3.260.0070.04312.71
5.3.250.0060.04212.72
5.3.240.0090.03712.72
5.3.230.0080.03612.71
5.3.220.0050.03712.68
5.3.210.0060.03912.68
5.3.200.0070.04212.68
5.3.190.0060.03912.68
5.3.180.0060.03812.67
5.3.170.0070.03812.66
5.3.160.0060.04012.68
5.3.150.0050.04012.68
5.3.140.0020.04012.66
5.3.130.0040.04212.66
5.3.120.0130.03812.66
5.3.110.0080.04012.66
5.3.100.0060.03712.13
5.3.90.0040.04112.10
5.3.80.0060.04512.09
5.3.70.0060.03812.09
5.3.60.0080.03512.08
5.3.50.0070.03612.02
5.3.40.0070.03712.02
5.3.30.0050.04011.98
5.3.20.0060.03611.76
5.3.10.0070.03311.73
5.3.00.0060.04611.72
5.2.170.0080.0329.22
5.2.160.0070.0279.22
5.2.150.0020.0339.22
5.2.140.0030.0329.21
5.2.130.0040.0309.18
5.2.120.0050.0279.18
5.2.110.0020.0319.18
5.2.100.0030.0309.18
5.2.90.0060.0369.18
5.2.80.0070.0379.17
5.2.70.0050.0359.17
5.2.60.0070.0429.13
5.2.50.0060.0369.10
5.2.40.0050.0309.07
5.2.30.0060.0309.05
5.2.20.0080.0319.04
5.2.10.0090.0288.95
5.2.00.0070.0308.80
5.1.60.0050.0278.09
5.1.50.0070.0308.08
5.1.40.0030.0268.07
5.1.30.0060.0248.41
5.1.20.0060.0268.44
5.1.10.0050.0268.16
5.1.00.0040.0258.16
5.0.50.0060.0236.64
5.0.40.0050.0346.50
5.0.30.0080.0316.32
5.0.20.0070.0376.28
5.0.10.0080.0236.26
5.0.00.0070.0346.25
4.4.90.0060.0214.78
4.4.80.0040.0224.75
4.4.70.0050.0174.76
4.4.60.0050.0194.76
4.4.50.0090.0224.77
4.4.40.0070.0434.70
4.4.30.0070.0134.76
4.4.20.0040.0144.85
4.4.10.0000.0184.85
4.4.00.0040.0284.76
4.3.110.0040.0154.67
4.3.100.0040.0174.67
4.3.90.0040.0134.63
4.3.80.0010.0294.59
4.3.70.0020.0154.63
4.3.60.0030.0144.62
4.3.50.0030.0224.63
4.3.40.0030.0274.54
4.3.30.0030.0203.30
4.3.20.0020.0173.28
4.3.10.0020.0173.23
4.3.00.0070.0176.92

preferences:
142.06 ms | 1394 KiB | 7 Q