3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { private $secret = 'Nyy lbhe Onfr ner orybat gb hf.'; private $callback; final public function run() { call_user_func($this->callback); return $this->secret . PHP_EOL; } public function __set($k, $v) { $key = $v[($v[$v])]; // $v is some kind of weird array $value = $v(); // and a callback! $this->{$key} = $value; } } $test = new Test; // start editing here $test->callback = '14' // end editing here echo $test->run();

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.250.0030.08318.73
5.4.240.0100.07018.84
5.4.230.0100.07718.90
5.4.220.0130.07718.89
5.4.210.0030.06318.95
5.4.200.0130.06718.88
5.4.190.0130.05318.72
5.4.180.0000.05718.75
5.4.170.0070.05318.85
5.4.160.0100.05718.82
5.4.150.0070.06318.86
5.4.140.0100.05316.46
5.4.130.0070.06316.64
5.4.120.0130.05016.41
5.4.110.0000.07316.51
5.4.100.0130.05016.40
5.4.90.0130.05316.47
5.4.80.0130.06016.64
5.4.70.0130.06316.34
5.4.60.0100.07016.50
5.4.50.0170.06716.46
5.4.40.0170.04316.53
5.4.30.0070.05716.34
5.4.20.0130.07016.38
5.4.10.0170.06716.39
5.4.00.0100.05015.76
5.3.280.0130.04714.68
5.3.270.0030.05714.53
5.3.260.0030.05714.46
5.3.250.0070.05714.45
5.3.240.0170.06014.63
5.3.230.0100.05014.74
5.3.220.0100.04714.48
5.3.210.0170.06314.65
5.3.200.0100.06714.67
5.3.190.0100.06314.73
5.3.180.0230.05714.40
5.3.170.0130.06314.73
5.3.160.0070.05314.79
5.3.150.0100.05714.75
5.3.140.0070.06014.70
5.3.130.0200.05714.54
5.3.120.0070.06014.77
5.3.110.0100.07014.57
5.3.100.0070.05314.01
5.3.90.0200.05314.11
5.3.80.0030.06014.20
5.3.70.0030.06314.11
5.3.60.0170.05713.91
5.3.50.0170.04713.93
5.3.40.0130.06713.79
5.3.30.0070.06014.13
5.3.20.0070.07313.88
5.3.10.0100.05013.67
5.3.00.0070.05013.73

preferences:
136.63 ms | 1386 KiB | 7 Q