3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Name; function Boo() { var_dump('func:', __FUNCTION__, __METHOD__); } trait Constants { public static function traitC () { return __METHOD__; } } class Foo { use Constants; public static function method () { return new function () {};} } Boo(); $ref = new \ReflectionFunction(Foo::method()); var_dump($ref->export());

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.300.4030.04018.99
5.4.290.4000.03719.16
5.4.280.4270.03719.31
5.4.270.4100.03319.29
5.4.260.3470.03719.21
5.4.250.3570.03719.05
5.4.240.3700.02719.21
5.4.230.3670.03319.13
5.4.220.3670.04718.98
5.4.210.3500.04319.09
5.4.200.3530.03719.12
5.4.190.3400.03719.19
5.4.180.3770.03019.23
5.4.170.3430.03719.18
5.4.160.3200.03319.21
5.4.150.3100.04018.93
5.4.140.3230.03716.33
5.4.130.3300.03016.39
5.4.120.2670.03016.36
5.4.110.3030.03316.61
5.4.100.3630.03316.50
5.4.90.3270.03016.61
5.4.80.3370.03716.44
5.4.70.3230.03016.45
5.4.60.3200.02716.43
5.4.50.4130.03316.16
5.4.40.3900.03316.43
5.4.30.3730.04016.42
5.4.20.3900.03316.48
5.4.10.3470.03016.51
5.4.00.3800.04316.11
5.3.280.3570.03314.56
5.3.270.2870.04014.65
5.3.260.3200.04014.60
5.3.250.3470.03014.51
5.3.240.3430.03014.62
5.3.230.3070.04014.59
5.3.220.3330.04714.61
5.3.210.3700.04314.55
5.3.200.3970.03714.54
5.3.190.3600.03314.79
5.3.180.3530.04014.64
5.3.170.3670.03714.78
5.3.160.4900.05014.57
5.3.150.3870.03714.64
5.3.140.3730.04714.53
5.3.130.4200.03314.66
5.3.120.4200.03314.47
5.3.110.3600.03714.55
5.3.100.3270.04014.27
5.3.90.3270.03713.93
5.3.80.3530.04314.17
5.3.70.3570.04014.17
5.3.60.3570.02714.07
5.3.50.3030.03313.88
5.3.40.3470.03713.85
5.3.30.3500.03713.95
5.3.20.3630.03013.72
5.3.10.3770.03713.67
5.3.00.4270.03313.65

preferences:
141.41 ms | 1394 KiB | 7 Q