3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private static $VAR = [17,289,4913]; public function foo() { return function () { var_dump($this::$VAR); } } } (new A)->foo()();

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)
7.2.30.0340.01217.64
7.2.20.0320.01517.01
7.2.10.0380.01017.26
7.2.00.0500.01217.45
7.1.150.0310.01216.34
7.1.140.0390.01216.23
7.1.130.0300.01316.04
7.1.120.0280.01016.05
7.1.110.0240.01215.56
7.1.100.0350.01015.77
7.1.90.0240.01015.80
7.1.80.0790.01015.94
7.1.70.0340.01215.18
7.1.60.0470.01533.20
7.1.50.0490.01332.75
7.1.40.0590.02232.27
7.1.30.0640.01732.40
7.1.20.0630.01832.54
7.1.10.0330.01414.62
7.1.00.0510.01014.35

preferences:
141.18 ms | 1394 KiB | 7 Q