3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Bar { public function foo() { return 1; } public function get() { return function() { return $this->foo() === static::foo(); } } } class Baz { public function foo() { return 2; } public function exec(callable $closure) { return $closure(); } } $bar = new Bar; $baz = new Baz; var_dump($baz->exec($bar->get()));

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.5.30.0200.07719.32
5.5.20.0300.05319.32
5.5.10.0270.07319.52
5.5.00.0200.03719.27
5.4.190.0300.06718.85
5.4.180.0270.06018.99
5.4.170.0270.06018.97
5.4.160.0130.05318.91
5.4.150.0200.03719.13
5.4.140.0200.03016.59
5.4.130.0230.06016.54
5.4.120.0130.03316.34
5.4.110.0200.03316.72
5.4.100.0070.04016.48
5.4.90.0170.03016.50
5.4.80.0130.03716.53
5.4.70.0130.03316.43
5.4.60.0170.04016.54
5.4.50.0270.03016.39
5.4.40.0130.04316.64
5.4.30.0200.03716.44
5.4.20.0200.03016.26
5.4.10.0270.03316.38
5.4.00.0200.03715.78
5.3.270.0230.07714.66
5.3.260.0300.03714.64
5.3.250.0170.04014.67
5.3.240.0130.04014.66
5.3.230.0130.03714.61
5.3.220.0170.03314.63
5.3.210.0130.04314.60
5.3.200.0100.04014.63
5.3.190.0130.03714.46
5.3.180.0070.04314.61
5.3.170.0170.03314.59
5.3.160.0100.04714.46
5.3.150.0200.07714.73
5.3.140.0130.08014.64
5.3.130.0230.05314.58
5.3.120.0230.03714.60
5.3.110.0270.07014.62
5.3.100.0200.07314.08
5.3.90.0270.06714.05
5.3.80.0170.05014.18
5.3.70.0170.06013.92
5.3.60.0270.04314.15
5.3.50.0270.04013.97
5.3.40.0100.04013.96
5.3.30.0130.03713.91
5.3.20.0100.04013.68
5.3.10.0100.03713.63
5.3.00.0130.03313.70

preferences:
139.76 ms | 1394 KiB | 7 Q