3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static calculate() { return 1024^2; } } echo Foo::calculate();

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.240.0270.07019.22
5.4.230.0270.07319.21
5.4.220.0330.05718.87
5.4.210.0200.03719.14
5.4.200.0230.05318.84
5.4.190.0170.04719.23
5.4.180.0270.07319.12
5.4.170.0270.07018.86
5.4.160.0200.04719.18
5.4.150.0130.04318.97
5.4.140.0300.07016.34
5.4.130.0270.07716.49
5.4.120.0230.07316.31
5.4.110.0200.04016.56
5.4.100.0170.04716.45
5.4.90.0300.06016.54
5.4.80.0270.05016.54
5.4.70.0300.06016.54
5.4.60.0270.05716.48
5.4.50.0130.04716.43
5.4.40.0200.07316.34
5.4.30.0270.06716.55
5.4.20.0070.07316.38
5.4.10.0130.07016.55
5.4.00.0230.04715.96
5.3.280.0200.05314.59
5.3.270.0300.04714.76
5.3.260.0230.04014.68
5.3.250.0300.05714.52
5.3.240.0400.05314.63
5.3.230.0270.07314.49
5.3.220.0200.04014.68
5.3.210.0300.06714.53
5.3.200.0230.06014.48
5.3.190.0270.04714.57
5.3.180.0230.06714.56
5.3.170.0200.07314.47
5.3.160.0270.03714.64
5.3.150.0330.04014.57
5.3.140.0230.06714.77
5.3.130.0230.05014.70
5.3.120.0130.04714.52
5.3.110.0130.04014.77
5.3.100.0200.06714.25
5.3.90.0270.04014.00
5.3.80.0170.04314.10
5.3.70.0170.05714.00
5.3.60.0130.04014.00
5.3.50.0170.07014.02
5.3.40.0270.06314.00
5.3.30.0230.06314.00
5.3.20.0270.05314.00
5.3.10.0200.05014.00
5.3.00.0130.04014.00

preferences:
141.52 ms | 1386 KiB | 7 Q