3v4l.org

run code in 300+ PHP versions simultaneously
<?php tg($T) { foreach($T['i'] as $i) { $T['i'] = $i + 1; } $T['i'] = array_unique($T['i']); } tg(array(1, 1, 3, 5));

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.260.0130.05718.95
5.4.250.0130.06318.79
5.4.240.0070.08018.94
5.4.230.0130.06319.02
5.4.220.0130.07719.00
5.4.210.0200.04318.93
5.4.200.0030.05318.80
5.4.190.0030.06718.74
5.4.180.0030.05718.79
5.4.170.0130.05019.11
5.4.160.0070.05718.93
5.4.150.0070.06018.93
5.4.140.0030.07316.51
5.4.130.0230.04016.39
5.4.120.0130.05016.35
5.4.110.0200.04016.45
5.4.100.0200.05016.42
5.4.90.0100.05716.42
5.4.80.0070.05316.55
5.4.70.0130.04716.54
5.4.60.0070.05016.41
5.4.50.0130.04316.34
5.4.40.0130.04316.52
5.4.30.0130.04716.46
5.4.20.0030.06016.33
5.4.10.0100.05016.39
5.4.00.0030.05315.79
5.3.280.0030.05314.64
5.3.270.0100.05314.45
5.3.260.0070.05314.49
5.3.250.0100.04714.49
5.3.240.0130.04714.70
5.3.230.0100.06314.61
5.3.220.0070.05314.66
5.3.210.0070.06714.58
5.3.200.0170.04714.44
5.3.190.0070.05314.58
5.3.180.0100.07014.58
5.3.170.0030.05014.34
5.3.160.0070.07314.26
5.3.150.0130.05714.59
5.3.140.0070.05714.55
5.3.130.0030.05714.55
5.3.120.0170.04314.43
5.3.110.0200.04714.64
5.3.100.0030.05314.05
5.3.90.0000.05714.02
5.3.80.0070.05014.12
5.3.70.0100.04714.02
5.3.60.0170.04714.09
5.3.50.0200.05013.95
5.3.40.0000.05713.84
5.3.30.0000.05313.85
5.3.20.0070.07013.79
5.3.10.0030.05313.42
5.3.00.0100.05013.79
5.2.170.0030.06010.90
5.2.160.0070.04011.11
5.2.150.0070.04011.16
5.2.140.0100.03711.23
5.2.130.0130.04311.01
5.2.120.0100.03710.98
5.2.110.0070.04011.20
5.2.100.0170.04011.21
5.2.90.0070.04311.11
5.2.80.0130.04711.00
5.2.70.0130.05011.09
5.2.60.0030.04311.07
5.2.50.0070.04310.95
5.2.40.0030.04310.88
5.2.30.0130.05010.99
5.2.20.0100.04310.96
5.2.10.0070.04311.02
5.2.00.0170.03310.55
5.1.60.0000.0409.92
5.1.50.0000.03710.23
5.1.40.0100.03010.04
5.1.30.0200.04010.09
5.1.20.0070.03310.43
5.1.10.0000.0379.91
5.1.00.0000.04710.11
5.0.50.0000.0308.45
5.0.40.0070.0238.44
5.0.30.0070.0437.98
5.0.20.0070.0238.24
5.0.10.0100.0278.08
5.0.00.0030.0407.99
4.4.90.0070.0176.89
4.4.80.0030.0236.89
4.4.70.0070.0276.89
4.4.60.0030.0236.89
4.4.50.0000.0236.89
4.4.40.0130.0236.89
4.4.30.0000.0236.89
4.4.20.0100.0176.89
4.4.10.0000.0236.89
4.4.00.0070.0376.89
4.3.110.0070.0276.89
4.3.100.0100.0236.89
4.3.90.0000.0306.89
4.3.80.0030.0306.89
4.3.70.0030.0206.89
4.3.60.0070.0176.89
4.3.50.0030.0206.89
4.3.40.0070.0306.89
4.3.30.0030.0236.89
4.3.20.0070.0176.89
4.3.10.0000.0276.89
4.3.00.0070.0237.15

preferences:
142.58 ms | 1394 KiB | 7 Q