3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Foo { private $name = '123'; } class Bar { use Foo; private $name = '321'; public function getName(echo $this->name;); } $bar = new Bar(); $bar->getName();

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.0090.04412.52
5.4.300.0040.04012.52
5.4.290.0060.03912.52
5.4.280.0070.03512.41
5.4.270.0040.03812.41
5.4.260.0070.04312.41
5.4.250.0030.04112.41
5.4.240.0090.03412.41
5.4.230.0040.04012.40
5.4.220.0080.03412.40
5.4.210.0060.03712.40
5.4.200.0050.03912.40
5.4.190.0060.03612.40
5.4.180.0060.04012.39
5.4.170.0070.03512.40
5.4.160.0070.03612.40
5.4.150.0070.03612.40
5.4.140.0120.03312.09
5.4.130.0050.03612.07
5.4.120.0040.03712.04
5.4.110.0030.03812.03
5.4.100.0070.04112.03
5.4.90.0120.04412.03
5.4.80.0110.05112.03
5.4.70.0120.04612.03
5.4.60.0070.05012.02
5.4.50.0080.04612.03
5.4.40.0110.04612.02
5.4.30.0040.05312.01
5.4.20.0110.04712.00
5.4.10.0130.05112.02
5.4.00.0080.04911.50
5.3.280.0120.05212.71
5.3.270.0150.04912.73
5.3.260.0090.05112.71
5.3.250.0090.05312.72
5.3.240.0090.03712.72
5.3.230.0110.03312.71
5.3.220.0070.03512.68
5.3.210.0060.04612.68
5.3.200.0110.03912.68
5.3.190.0070.04012.67
5.3.180.0060.03712.67
5.3.170.0130.04012.67
5.3.160.0100.05612.68
5.3.150.0130.06012.68
5.3.140.0110.05612.66
5.3.130.0100.05612.66
5.3.120.0080.05312.66
5.3.110.0100.05112.66
5.3.100.0050.05312.12
5.3.90.0100.05112.08
5.3.80.0060.05312.07
5.3.70.0090.05012.08
5.3.60.0150.04412.06
5.3.50.0090.03212.00
5.3.40.0040.03812.00
5.3.30.0080.03311.95
5.3.20.0050.03611.73
5.3.10.0090.03111.70
5.3.00.0060.03711.68
5.2.170.0070.0409.18
5.2.160.0090.0449.18
5.2.150.0090.0399.18
5.2.140.0050.0319.18
5.2.130.0050.0299.14
5.2.120.0050.0289.14
5.2.110.0060.0289.14
5.2.100.0030.0309.14
5.2.90.0080.0279.14
5.2.80.0060.0309.14
5.2.70.0060.0299.14
5.2.60.0100.0259.09
5.2.50.0060.0299.06
5.2.40.0090.0259.03
5.2.30.0100.0249.02
5.2.20.0060.0289.00
5.2.10.0050.0298.93
5.2.00.0010.0338.78
5.1.60.0040.0248.07
5.1.50.0000.0288.06
5.1.40.0040.0258.05
5.1.30.0060.0308.40
5.1.20.0020.0298.42
5.1.10.0040.0258.14
5.1.00.0010.0288.14
5.0.50.0020.0256.62
5.0.40.0030.0226.48
5.0.30.0060.0306.29
5.0.20.0020.0216.27
5.0.10.0030.0246.24
5.0.00.0050.0406.23
4.4.90.0040.0224.78
4.4.80.0070.0184.75
4.4.70.0050.0194.76
4.4.60.0040.0154.75
4.4.50.0020.0174.77
4.4.40.0040.0294.71
4.4.30.0030.0194.76
4.4.20.0030.0224.84
4.4.10.0030.0224.85
4.4.00.0010.0264.76
4.3.110.0010.0174.67
4.3.100.0020.0164.66
4.3.90.0030.0144.64
4.3.80.0030.0254.59
4.3.70.0020.0164.63
4.3.60.0030.0154.63
4.3.50.0020.0174.63
4.3.40.0040.0234.54
4.3.30.0000.0183.29
4.3.20.0010.0173.26
4.3.10.0020.0163.22
4.3.00.0170.0178.86

preferences:
149.35 ms | 1394 KiB | 7 Q