3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { function __call($name, $args){ echo "__call " . $name . PHP_EOL; } public static function __callStatic($name, $args) { echo "__callStatic " . $name . PHP_EOL; } public function make_call_self() { self::ted(); } public function make_call_static() { static::ted(); } function make_call_classname() { x = function(){ foo::bob(); }; x(); } } $x = new foo(); $x->make_call_self(); $x->make_call_static(); $x->make_call_classname(); foo::sam();

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.80.0000.04016.41
5.4.70.0100.05316.37
5.4.60.0030.04716.27
5.4.50.0100.06716.36
5.4.40.0100.06016.43
5.4.30.0030.07316.42
5.4.20.0030.05316.38
5.4.10.0070.04016.42
5.4.00.0070.06015.83
5.3.180.0030.03714.60
5.3.170.0100.04314.54
5.3.160.0030.06314.64
5.3.150.0130.04714.63
5.3.140.0030.07714.61
5.3.130.0070.07314.77
5.3.120.0070.04014.66
5.3.110.0100.06714.55
5.3.100.0070.05714.14
5.3.90.0070.07014.06
5.3.80.0100.06714.08
5.3.70.0100.06714.07
5.3.60.0070.03714.05
5.3.50.0000.04013.94
5.3.40.0070.03313.98
5.3.30.0130.06713.77
5.3.20.0070.07013.55
5.3.10.0030.07013.71
5.3.00.0070.06313.67

preferences:
132.24 ms | 1394 KiB | 7 Q