3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Test1 { private function test() {echo "OK";} } trait Test2 { use Test1 { test as testRedirect; }; private function test() {$this->testRedirect(); echo " OK 2";} } class TestClass1 { use Test2; public function testIt() { $this->test(); } } $test = new TestClass1(); $test->testIt();

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.370.0170.05318.50
5.4.360.0230.04318.59
5.4.350.0130.05313.77
5.4.340.0170.04313.76
5.4.320.0170.03314.42
5.4.310.0130.04014.50
5.4.300.0100.04314.26
5.4.290.0100.05014.25
5.4.280.0000.04014.21
5.4.270.0130.03714.19
5.4.260.0100.03714.15
5.4.250.0100.03314.10
5.4.240.0070.03714.19
5.4.230.0070.03714.16
5.4.220.0070.03714.38
5.4.210.0130.03014.16
5.4.200.0130.03314.28
5.4.190.0130.03714.09
5.4.180.0230.03014.16
5.4.170.0100.04314.21
5.4.160.0100.04314.17
5.4.150.0030.04714.16
5.4.140.0000.04713.96
5.4.130.0070.03713.86
5.4.120.0170.03713.83
5.4.110.0130.04313.76
5.4.100.0030.04013.93
5.4.90.0030.04013.80
5.4.80.0100.04314.02
5.4.70.0230.04013.75
5.4.60.0100.04014.01
5.4.50.0070.04014.01
5.4.40.0130.03314.00
5.4.30.0030.04313.91
5.4.20.0070.04313.91
5.4.10.0030.04713.75
5.4.00.0070.04713.23
5.3.290.0130.04714.70
5.3.280.0070.04014.52
5.3.270.0070.05014.63
5.3.260.0030.04314.61
5.3.250.0070.04014.48
5.3.240.0130.04714.52
5.3.230.0070.04014.44
5.3.220.0070.04014.43
5.3.210.0100.03714.44
5.3.200.0070.03714.44
5.3.190.0130.04014.57
5.3.180.0100.03714.48
5.3.170.0170.03014.44
5.3.160.0100.05314.51
5.3.150.0100.03714.51
5.3.140.0030.04314.40
5.3.130.0030.04314.46
5.3.120.0030.04314.38
5.3.110.0170.03014.45
5.3.100.0100.04013.95
5.3.90.0070.04314.05
5.3.80.0030.05013.88
5.3.70.0100.03714.02
5.3.60.0070.04013.83
5.3.50.0000.04713.81
5.3.40.0070.04013.95
5.3.30.0100.04013.95
5.3.20.0070.04013.53
5.3.10.0100.03313.68
5.3.00.0100.03713.58
5.2.170.0070.03711.11
5.2.160.0170.02311.12
5.2.150.0030.03711.06
5.2.140.0100.04011.16
5.2.130.0100.04011.02
5.2.120.0130.02710.95
5.2.110.0170.03711.04
5.2.100.0100.03311.01
5.2.90.0100.03011.02
5.2.80.0030.03710.96
5.2.70.0070.03310.99
5.2.60.0070.03011.07
5.2.50.0070.03010.93
5.2.40.0130.02310.91
5.2.30.0030.03310.88
5.2.20.0030.03310.88
5.2.10.0030.03310.76
5.2.00.0030.03310.66
5.1.60.0070.02310.00
5.1.50.0100.0309.90
5.1.40.0070.02310.04
5.1.30.0100.03310.24
5.1.20.0070.03310.36
5.1.10.0030.03010.03
5.1.00.0030.03310.01
5.0.50.0030.0238.40
5.0.40.0030.0208.37
5.0.30.0000.0338.15
5.0.20.0030.0208.32
5.0.10.0030.0208.17
5.0.00.0030.0308.23
4.4.90.0000.0205.86
4.4.80.0000.0205.82
4.4.70.0070.0175.82
4.4.60.0070.0135.92
4.4.50.0000.0175.85
4.4.40.0030.0275.82
4.4.30.0000.0205.79
4.4.20.0000.0205.91
4.4.10.0100.0105.82
4.4.00.0070.0235.91
4.3.110.0000.0205.79
4.3.100.0130.0135.72
4.3.90.0030.0135.80
4.3.80.0000.0275.79
4.3.70.0000.0175.81
4.3.60.0030.0135.86
4.3.50.0070.0135.83
4.3.40.0000.0275.68
4.3.30.0000.0204.51
4.3.20.0000.0174.50
4.3.10.0030.0134.60
4.3.00.0000.0236.93

preferences:
148.45 ms | 1394 KiB | 7 Q