3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo() { public function foo() { return array(1,2,3); } } $foo = new Foo(); echo $foo->foo()[1];

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.320.0130.04019.34
5.4.310.0070.04319.09
5.4.300.0230.03319.08
5.4.290.0170.04019.22
5.4.280.0130.03719.14
5.4.270.0170.03319.09
5.4.260.0170.03319.22
5.4.250.0130.04319.14
5.4.240.0230.03719.05
5.4.230.0170.05319.18
5.4.220.0130.05719.09
5.4.210.0230.03318.94
5.4.200.0370.03719.13
5.4.190.0170.06019.08
5.4.180.0170.05718.86
5.4.170.0270.07319.04
5.4.160.0270.07019.11
5.4.150.0300.05719.20
5.4.140.0300.07016.36
5.4.130.0530.03716.31
5.4.120.0200.04716.50
5.4.110.0130.05016.24
5.4.100.0130.06716.54
5.4.90.0270.06016.35
5.4.80.0330.06016.35
5.4.70.0230.05016.17
5.4.60.0200.04016.41
5.4.50.0230.05016.43
5.4.40.0200.04716.38
5.4.30.0230.07316.48
5.4.20.0300.06716.51
5.4.10.0230.05016.24
5.4.00.0170.04715.91
5.3.290.0200.03014.63
5.3.280.0170.04714.71
5.3.270.0230.04014.73
5.3.260.0230.07014.71
5.3.250.0230.05314.82
5.3.240.0330.05314.62
5.3.230.0270.04714.52
5.3.220.0270.06714.54
5.3.210.0230.07314.47
5.3.200.0230.07014.64
5.3.190.0270.08314.70
5.3.180.0230.05314.46
5.3.170.0200.08014.47
5.3.160.0370.02714.70
5.3.150.0200.07014.63
5.3.140.0170.07714.52
5.3.130.0270.05314.66
5.3.120.0300.06014.51
5.3.110.0370.05714.54
5.3.100.0300.07013.95
5.3.90.0200.06714.02
5.3.80.0270.07014.09
5.3.70.0270.05014.10
5.3.60.0400.06014.08
5.3.50.0230.03714.02
5.3.40.0230.05313.94
5.3.30.0300.06713.88
5.3.20.0270.03713.73
5.3.10.0270.07313.88
5.3.00.0270.06013.56
5.2.170.0230.06011.25
5.2.160.0170.04011.05
5.2.150.0230.05011.11
5.2.140.0230.05311.05
5.2.130.0170.03011.01
5.2.120.0100.03711.01
5.2.110.0230.05711.10
5.2.100.0200.05711.10
5.2.90.0230.03311.32
5.2.80.0170.04711.10
5.2.70.0330.05711.07
5.2.60.0200.03010.95
5.2.50.0170.03710.88
5.2.40.0200.03310.98
5.2.30.0170.06011.08
5.2.20.0170.06011.07
5.2.10.0200.05310.78
5.2.00.0270.05310.93
5.1.60.0230.0509.91
5.1.50.0170.0339.96
5.1.40.0170.03710.02
5.1.30.0170.03010.41
5.1.20.0170.03710.32
5.1.10.0230.0579.95
5.1.00.0300.02310.23
5.0.50.0200.0379.66
5.0.40.0100.0309.66
5.0.30.0100.0609.66
5.0.20.0100.0239.66
5.0.10.0100.0339.66
5.0.00.0130.0509.66
4.4.90.0100.0239.66
4.4.80.0170.0309.66
4.4.70.0100.0309.66
4.4.60.0170.0279.66
4.4.50.0100.0379.66
4.4.40.0130.0479.66
4.4.30.0030.0239.66
4.4.20.0070.0209.66
4.4.10.0070.0409.66
4.4.00.0070.0339.66
4.3.110.0100.0179.66
4.3.100.0100.0339.66
4.3.90.0070.0309.66
4.3.80.0130.0379.66
4.3.70.0130.0239.66
4.3.60.0200.0209.66
4.3.50.0070.0309.66
4.3.40.0130.0339.66
4.3.30.0030.0309.66
4.3.20.0130.0309.66
4.3.10.0070.0209.66
4.3.00.0030.0339.66

preferences:
161.99 ms | 1394 KiB | 7 Q