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.0300.06718.88
5.4.300.0230.06019.15
5.4.290.0170.05019.19
5.4.280.0170.04318.85
5.4.270.0300.04718.85
5.4.260.0200.05019.16
5.4.250.0230.04319.31
5.4.240.0300.03319.19
5.4.230.0300.03019.22
5.4.220.0230.05019.14
5.4.210.0430.05319.22
5.4.200.0200.04018.98
5.4.190.0330.06319.00
5.4.180.0330.07019.17
5.4.170.0230.06318.84
5.4.160.0330.06719.20
5.4.150.0200.04319.17
5.4.140.0330.06316.36
5.4.130.0200.06016.51
5.4.120.0270.03716.72
5.4.110.0300.07016.59
5.4.100.0270.07316.61
5.4.90.0230.05016.38
5.4.80.0400.05716.49
5.4.70.0400.06016.44
5.4.60.0300.04016.51
5.4.50.0370.05016.60
5.4.40.0300.03716.51
5.4.30.0270.06016.54
5.4.20.0270.06316.42
5.4.10.0330.03316.42
5.4.00.0270.06715.75
5.3.280.0330.07014.56
5.3.270.0300.07014.54
5.3.260.0330.03314.63
5.3.250.0330.06314.48
5.3.240.0300.05714.44
5.3.230.0300.06314.45
5.3.220.0270.03714.52
5.3.210.0300.06314.47
5.3.200.0200.05314.52
5.3.190.0270.04014.66
5.3.180.0400.03714.41
5.3.170.0300.07014.41
5.3.160.0300.07014.54
5.3.150.0330.06314.55
5.3.140.0330.03714.39
5.3.130.0330.06314.59
5.3.120.0270.05314.64
5.3.110.0270.07014.39
5.3.100.0430.05713.89
5.3.90.0300.06713.95
5.3.80.0330.06313.96
5.3.70.0200.04014.06
5.3.60.0300.06713.95
5.3.50.0300.05313.93
5.3.40.0230.04313.91
5.3.30.0230.04013.84
5.3.20.0200.04313.63
5.3.10.0330.03713.45
5.3.00.0330.06313.51
5.2.170.0200.06013.21
5.2.160.0200.06013.21
5.2.150.0200.04013.21
5.2.140.0170.03013.21
5.2.130.0170.04013.21
5.2.120.0200.04013.21
5.2.110.0200.03313.21
5.2.100.0200.05013.21
5.2.90.0300.05313.21
5.2.80.0230.05713.21
5.2.70.0230.06013.21
5.2.60.0200.04013.21
5.2.50.0200.06013.21
5.2.40.0270.03713.21
5.2.30.0230.05713.21
5.2.20.0130.05013.21
5.2.10.0230.05713.21
5.2.00.0230.05013.21
5.1.60.0130.03013.21
5.1.50.0170.03013.21
5.1.40.0170.03713.21
5.1.30.0200.05313.21
5.1.20.0230.05013.21
5.1.10.0200.05313.21
5.1.00.0230.03713.21
5.0.50.0170.03713.21
5.0.40.0100.03713.21
5.0.30.0070.04013.21
5.0.20.0170.03013.21
5.0.10.0100.04713.21
5.0.00.0100.04313.21
4.4.90.0070.03013.21
4.4.80.0130.03313.21
4.4.70.0100.01313.21
4.4.60.0100.03313.21
4.4.50.0070.02713.21
4.4.40.0130.04313.21
4.4.30.0130.01313.21
4.4.20.0100.03313.21
4.4.10.0170.02713.21
4.4.00.0070.03713.21
4.3.110.0230.01013.21
4.3.100.0100.02713.21
4.3.90.0070.02313.21
4.3.80.0130.04713.21
4.3.70.0130.01313.21
4.3.60.0130.03013.21
4.3.50.0070.03313.21
4.3.40.0130.05013.21
4.3.30.0030.03313.21
4.3.20.0030.02713.21
4.3.10.0030.02713.21
4.3.00.0030.02013.21

preferences:
135 ms | 1394 KiB | 7 Q