3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $value; public function __construct($value) { $this->value = $value; } public function Weeee() { return function() use ($this) { return str_repeat($this->value, 1000); }; } } $foo = new Foo(); echo $foo->Weeee();

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.10.0200.04319.43
5.5.00.0230.07719.46
5.4.170.0270.04719.23
5.4.160.0200.06019.14
5.4.150.0270.06319.10
5.4.140.0270.04316.34
5.4.130.0270.05716.47
5.4.120.0200.03316.42
5.4.110.0200.05316.43
5.4.100.0200.05316.43
5.4.90.0200.06716.36
5.4.80.0200.05316.45
5.4.70.0200.05716.43
5.4.60.0330.06716.45
5.4.50.0200.04016.28
5.4.40.0200.03316.41
5.4.30.0270.02716.46
5.4.20.0130.03716.42
5.4.10.0100.04016.30
5.4.00.0130.03715.79
5.3.270.0330.06714.61
5.3.260.0300.07314.62
5.3.250.0230.07714.77
5.3.240.0300.06714.64
5.3.230.0270.03314.52
5.3.220.0200.08014.46
5.3.210.0330.06314.71
5.3.200.0270.07014.48
5.3.190.0130.06314.46
5.3.180.0270.06714.72
5.3.170.0230.06314.59
5.3.160.0330.03714.59
5.3.150.0170.05714.57
5.3.140.0230.03314.55
5.3.130.0170.04014.44
5.3.120.0230.03314.60
5.3.110.0170.03714.61
5.3.100.0170.03714.09
5.3.90.0130.03714.04
5.3.80.0100.04014.18
5.3.70.0200.03013.95
5.3.60.0130.03714.04
5.3.50.0100.04013.99
5.3.40.0200.03313.95
5.3.30.0200.03013.91
5.3.20.0230.03013.62
5.3.10.0270.04013.54
5.3.00.0200.03313.79

preferences:
136.79 ms | 1394 KiB | 7 Q