3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function __construct() { } public static function a($time) { return new static(); } public static function b($time) { return new self(); } } var_dump(A::a()); #var_dump(A::b());

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.290.0300.06319.14
5.4.280.0300.04719.03
5.4.270.0200.04318.82
5.4.260.0270.04019.21
5.4.250.0400.06018.99
5.4.240.0270.03719.11
5.4.230.0300.03319.08
5.4.220.0300.03318.99
5.4.210.0430.03718.87
5.4.200.0400.03718.84
5.4.190.0300.03318.84
5.4.180.0270.03319.13
5.4.170.0330.07319.07
5.4.160.0330.04018.85
5.4.150.0230.04318.84
5.4.140.0430.03316.35
5.4.130.0430.06316.38
5.4.120.0330.03716.35
5.4.110.0370.04316.37
5.4.100.0300.04016.46
5.4.90.0300.07016.54
5.4.80.0300.05316.17
5.4.70.0430.05716.54
5.4.60.0270.04316.33
5.4.50.0430.06716.54
5.4.40.0400.05316.48
5.4.30.0330.04716.51
5.4.20.0270.05716.54
5.4.10.0300.05316.32
5.4.00.0230.04016.13
5.3.280.0370.05714.52
5.3.270.0270.07314.62
5.3.260.0300.07314.72
5.3.250.0430.04714.61
5.3.240.0570.02714.68
5.3.230.0400.06014.52
5.3.220.0400.04714.54
5.3.210.0470.05714.55
5.3.200.0400.05714.55
5.3.190.0330.03714.47
5.3.180.0330.04014.54
5.3.170.0370.07314.47
5.3.160.0400.07014.59
5.3.150.0430.06314.61
5.3.140.0370.06714.56
5.3.130.0330.06714.54
5.3.120.0270.03714.45
5.3.110.0270.05314.77
5.3.100.0230.03314.02
5.3.90.0400.05714.03
5.3.80.0330.06713.95
5.3.70.0330.06014.04
5.3.60.0270.07314.02
5.3.50.0500.06013.87
5.3.40.0430.05713.89
5.3.30.0400.06313.82
5.3.20.0330.03313.68
5.3.10.0400.04713.63
5.3.00.0270.03313.88

preferences:
141.82 ms | 1394 KiB | 7 Q