3v4l.org

run code in 300+ PHP versions simultaneously
<?php static class Hello { private static $greeting = 'Hello'; private __construct() { $greeting .= ' There!'; } public static greet(){ echo $greeting; } }

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.40.0130.05011.99
5.4.30.0130.03911.98
5.4.20.0100.04011.98
5.4.10.0190.05011.98
5.4.00.0110.03911.48
5.3.140.0080.04112.66
5.3.130.0090.04112.66
5.3.120.0120.03912.66
5.3.110.0110.04112.66
5.3.100.0110.04012.12
5.3.90.0080.04512.08
5.3.80.0120.05112.08
5.3.70.0090.04312.08
5.3.60.0150.04712.06
5.3.50.0090.04312.00
5.3.40.0120.03812.00
5.3.30.0130.03811.94
5.3.20.0100.04011.73
5.3.10.0110.04111.69
5.3.00.0100.04011.67

preferences:
138.53 ms | 1399 KiB | 7 Q