3v4l.org

run code in 300+ PHP versions simultaneously
<?php function new() { return 3; } class Test { const private = 1; const public = 2; public static function new() { return new Test; } public function for() {} public function while() {} public function abstract() {} public function public() {} public function private() {} }

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.0.00.0130.06320.05
5.6.160.0170.06720.47
5.6.150.0030.06018.25
5.6.140.0030.06718.16
5.6.130.0030.08318.17
5.6.120.0030.06320.99
5.6.110.0170.07320.98
5.6.100.0100.08020.98
5.6.90.0130.06720.95
5.6.80.0030.06020.42
5.5.300.0070.05017.91
5.5.290.0130.06018.03
5.5.280.0100.06720.80
5.5.270.0130.04020.78
5.5.260.0070.06020.82
5.5.250.0030.05720.57
5.5.240.0300.07020.07

preferences:
137.75 ms | 1394 KiB | 7 Q