3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Some\TestNamespace; trait trait1 { public function method1() { echo __CLASS__; } } trait trait2 { public function method2() { $this->method1(); } } class class1 { use trait1; use trait2; } $obj = new class1; $closure = function () use ($obj) { $obj->method2(); } $closure();

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.190.0130.04019.21
5.4.180.0130.03719.30
5.4.170.0170.03719.23
5.4.160.0170.03719.05
5.4.150.0130.04019.07
5.4.140.0200.04716.47
5.4.130.0100.04016.57
5.4.120.0230.04316.38
5.4.110.0030.04716.61
5.4.100.0170.04716.33
5.4.90.0170.03316.42
5.4.80.0170.04716.49
5.4.70.0100.05016.40
5.4.60.0100.04016.59
5.4.50.0200.05316.50
5.4.40.0270.05016.44
5.4.30.0130.03016.47
5.4.20.0170.04316.48
5.4.10.0300.05316.53
5.4.00.0230.05715.78
5.3.270.0230.04014.59
5.3.260.0100.05014.45
5.3.250.0200.03314.64
5.3.240.0170.03714.48
5.3.230.0170.04314.51
5.3.220.0300.03714.47
5.3.210.0270.03014.55
5.3.200.0270.03314.47
5.3.190.0270.02714.42
5.3.180.0200.03714.61
5.3.170.0270.03714.50
5.3.160.0200.04314.44
5.3.150.0130.04014.51
5.3.140.0200.06014.50
5.3.130.0270.05314.46
5.3.120.0130.05014.60
5.3.110.0230.06714.40
5.3.100.0200.04313.89
5.3.90.0130.04013.86
5.3.80.0070.05313.88
5.3.70.0170.04313.96
5.3.60.0170.07713.94
5.3.50.0270.05013.98
5.3.40.0170.04313.96
5.3.30.0100.05713.85
5.3.20.0230.03013.60
5.3.10.0230.04713.64
5.3.00.0230.07013.59

preferences:
141.4 ms | 1394 KiB | 7 Q