3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestClass { $f = "hello world"; function __construct() { } function return_f() { echo self::$f; } } $obj = new TestClass(); $obj->return_f();

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.90.0330.03716.36
5.4.80.0470.03716.39
5.4.70.0470.05016.50
5.4.60.0370.05716.56
5.4.50.0330.04016.51
5.4.40.0470.05716.22
5.4.30.0430.06716.53
5.4.20.0430.04316.50
5.4.10.0370.06016.21
5.4.00.0500.05016.00
5.3.190.0400.05714.52
5.3.180.0300.04714.48
5.3.170.0400.05014.57
5.3.160.0370.03314.57
5.3.150.0300.05314.68
5.3.140.0400.07014.63
5.3.130.0430.06314.52
5.3.120.0400.04314.55
5.3.110.0530.05714.64
5.3.100.0430.06714.09
5.3.90.0400.05314.02
5.3.80.0400.03714.02
5.3.70.0400.06014.23
5.3.60.0370.03313.89
5.3.50.0370.05713.84
5.3.40.0370.04714.02
5.3.30.0330.06013.98
5.3.20.0400.03313.83
5.3.10.0400.07013.56
5.3.00.0530.05313.78

preferences:
140.6 ms | 1394 KiB | 7 Q