3v4l.org

run code in 300+ PHP versions simultaneously
<?php for($i = 0; $i < 100000; $i++) {new SplFixedArray($i)}

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.0570.06018.99
5.4.310.0470.07019.32
5.4.300.0500.03318.85
5.4.290.0400.04719.03
5.4.280.0470.04719.18
5.4.270.0570.05719.13
5.4.260.0500.05319.09
5.4.250.0470.05719.21
5.4.240.0530.06318.86
5.4.230.0430.04018.99
5.4.220.0470.03718.85
5.4.210.0370.04019.24
5.4.200.0430.05019.07
5.4.190.0500.04718.86
5.4.180.0530.06319.30
5.4.170.0470.06718.86
5.4.160.0470.06719.17
5.4.150.0430.06718.96
5.4.140.0330.04016.36
5.4.130.0400.05016.34
5.4.120.0430.03316.52
5.4.110.0500.04316.46
5.4.100.0530.05716.40
5.4.90.0330.05716.58
5.4.80.0470.04316.52
5.4.70.0470.04316.25
5.4.60.0470.04316.49
5.4.50.0470.04716.39
5.4.40.0470.05316.24
5.4.30.0430.06716.37
5.4.20.0400.03316.24
5.4.10.0430.05016.16
5.4.00.0400.04715.72
5.3.290.0670.05314.50
5.3.280.0530.06014.44
5.3.270.0570.06014.70
5.3.260.0400.05014.65
5.3.250.0400.03714.55
5.3.240.0670.03714.49
5.3.230.0500.06314.55
5.3.220.0630.05714.55
5.3.210.0470.06014.40
5.3.200.0500.04314.42
5.3.190.0570.06314.65
5.3.180.0530.04314.51
5.3.170.0530.05014.42
5.3.160.0430.05314.42
5.3.150.0470.06714.51
5.3.140.0470.05014.51
5.3.130.0500.04714.64
5.3.120.0430.03314.38
5.3.110.0370.04714.53
5.3.100.0430.03713.87
5.3.90.0430.06013.85
5.3.80.0430.05314.05
5.3.70.0400.05713.86
5.3.60.0370.04713.95
5.3.50.0530.05713.93
5.3.40.0400.04013.88
5.3.30.0400.03713.93
5.3.20.0400.04313.64
5.3.10.0500.06013.59
5.3.00.0470.05013.73
5.2.170.0370.05712.54
5.2.160.0330.05312.54
5.2.150.0400.06012.54
5.2.140.0300.02712.54
5.2.130.0430.04712.54
5.2.120.0370.03312.54
5.2.110.0470.04012.54
5.2.100.0300.02712.54
5.2.90.0330.04012.54
5.2.80.0370.05012.54
5.2.70.0400.03312.54
5.2.60.0370.05312.54
5.2.50.0470.05012.54
5.2.40.0400.04712.54
5.2.30.0370.03312.54
5.2.20.0400.05012.54
5.2.10.0300.04712.54
5.2.00.0270.03312.54
5.1.60.0300.02312.54
5.1.50.0270.02712.54
5.1.40.0270.03012.54
5.1.30.0430.03312.54
5.1.20.0430.04012.54
5.1.10.0270.04012.54
5.1.00.0300.05012.54
5.0.50.0100.02312.54
5.0.40.0170.04012.54
5.0.30.0130.06012.54
5.0.20.0170.04012.54
5.0.10.0200.04012.54
5.0.00.0170.05012.54
4.4.90.0230.02312.54
4.4.80.0200.02712.54
4.4.70.0170.03312.54
4.4.60.0200.02012.54
4.4.50.0200.03312.54
4.4.40.0130.03712.54
4.4.30.0170.01712.54
4.4.20.0100.01712.54
4.4.10.0130.01312.54
4.4.00.0170.05012.54
4.3.110.0200.02312.54
4.3.100.0170.02312.54
4.3.90.0170.03312.54
4.3.80.0170.03312.54
4.3.70.0200.02312.54
4.3.60.0230.02312.54
4.3.50.0170.03312.54
4.3.40.0230.04312.54
4.3.30.0100.03012.54
4.3.20.0130.03012.54
4.3.10.0070.03012.54
4.3.00.0070.02012.54

preferences:
142.56 ms | 1394 KiB | 7 Q