3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Prototype { public function __call($method,$args) { $f = $this->$method; return $f(); } } $object = new Prototype; $object->monday = function(){ return "monday"; }; $object->hello_monday = function() use($this){ echo "what a beautiful ".$this->monday()." day!"; }; $object->{"hello_monday"}();

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.110.0070.07316.52
5.4.100.0030.03716.52
5.4.90.0070.03716.64
5.4.80.0100.06316.49
5.4.70.0000.04016.46
5.4.60.0070.04016.41
5.4.50.0030.07716.41
5.4.40.0070.07716.48
5.4.30.0000.04716.39
5.4.20.0070.07016.45
5.4.10.0100.04016.43
5.4.00.0070.06315.91
5.3.210.0070.07314.67
5.3.200.0030.07714.57
5.3.190.0070.03714.58
5.3.180.0030.04714.64
5.3.170.0070.04714.42
5.3.160.0030.03714.59
5.3.150.0000.08014.78
5.3.140.0000.08314.77
5.3.130.0030.04014.61
5.3.120.0100.03314.60
5.3.110.0130.07014.60
5.3.100.0070.04314.01
5.3.90.0030.04013.98
5.3.80.0130.06314.05
5.3.70.0030.05014.05
5.3.60.0030.03713.89
5.3.50.0030.04013.98
5.3.40.0030.07713.86
5.3.30.0070.07313.93
5.3.20.0100.06313.91
5.3.10.0070.07013.66
5.3.00.0170.06713.68

preferences:
141.96 ms | 1386 KiB | 7 Q