3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{ protected $a = array('a' => 'a'); protected $b = array('b' => 'b'); protected $c = self::$a + self::$b; }

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.320.0330.06319.06
5.4.310.0170.07019.22
5.4.300.0170.04719.09
5.4.290.0170.07019.24
5.4.280.0200.07019.09
5.4.270.0300.05319.15
5.4.260.0200.06718.98
5.4.250.0230.05318.98
5.4.240.0200.07319.31
5.4.230.0200.05319.14
5.4.220.0200.07319.14
5.4.210.0230.05019.14
5.4.200.0170.06318.86
5.4.190.0230.03319.14
5.4.180.0170.06018.97
5.4.170.0230.07318.86
5.4.160.0130.04018.96
5.4.150.0270.07019.07
5.4.140.0100.04316.34
5.4.130.0100.04016.28
5.4.120.0200.04316.51
5.4.110.0230.07016.37
5.4.100.0200.07316.56
5.4.90.0200.06316.59
5.4.80.0270.06716.57
5.4.70.0230.06716.24
5.4.60.0200.04316.54
5.4.50.0230.06716.53
5.4.40.0270.07016.33
5.4.30.0200.04716.23
5.4.20.0200.04016.25
5.4.10.0200.04016.23
5.4.00.0170.07015.80
5.3.290.0200.06715.40
5.3.280.0100.04715.40
5.3.270.0200.05315.40
5.3.260.0170.03715.40
5.3.250.0170.04315.40
5.3.240.0170.05315.40
5.3.230.0200.03315.40
5.3.220.0130.07715.40
5.3.210.0230.07015.40
5.3.200.0200.08015.40
5.3.190.0230.06715.40
5.3.180.0270.03715.40
5.3.170.0100.07715.40
5.3.160.0270.04015.40
5.3.150.0130.04315.40
5.3.140.0300.06715.40
5.3.130.0200.05015.40
5.3.120.0230.05315.40
5.3.110.0100.04315.40
5.3.100.0230.07015.40
5.3.90.0330.03015.40
5.3.80.0200.05715.40
5.3.70.0200.03715.40
5.3.60.0070.04315.40
5.3.50.0200.04315.40
5.3.40.0200.07015.40
5.3.30.0170.07715.40
5.3.20.0170.06315.40
5.3.10.0230.07015.40
5.3.00.0130.06315.40
5.2.170.0170.06315.40
5.2.160.0130.06015.40
5.2.150.0170.04315.40
5.2.140.0130.05715.40
5.2.130.0170.05015.40
5.2.120.0170.06315.40
5.2.110.0200.05015.40
5.2.100.0130.06315.40
5.2.90.0130.03715.40
5.2.80.0100.03315.40
5.2.70.0130.03315.40
5.2.60.0200.05015.40
5.2.50.0230.02015.40
5.2.40.0130.05315.40
5.2.30.0130.05015.40
5.2.20.0170.05315.40
5.2.10.0070.06315.40
5.2.00.0200.05315.40
5.1.60.0130.04715.40
5.1.50.0170.02715.40
5.1.40.0100.03715.40
5.1.30.0200.03315.40
5.1.20.0100.05015.40
5.1.10.0130.03315.40
5.1.00.0200.03015.40
5.0.50.0000.05015.40
5.0.40.0070.03715.40
5.0.30.0130.05015.40
5.0.20.0070.02315.40
5.0.10.0070.04315.40
5.0.00.0070.06715.40
4.4.90.0070.02015.40
4.4.80.0070.03715.40
4.4.70.0000.03015.40
4.4.60.0100.03315.40
4.4.50.0070.02715.40
4.4.40.0070.03315.40
4.4.30.0030.02315.40
4.4.20.0070.02315.40
4.4.10.0100.03315.40
4.4.00.0100.05315.40
4.3.110.0100.03315.40
4.3.100.0100.01715.40
4.3.90.0070.03715.40
4.3.80.0070.05315.40
4.3.70.0030.03715.40
4.3.60.0070.03015.40
4.3.50.0030.02715.40
4.3.40.0100.03315.40
4.3.30.0100.03315.40
4.3.20.0030.03015.40
4.3.10.0030.02715.40
4.3.00.0030.02715.40

preferences:
147.62 ms | 1394 KiB | 7 Q