3v4l.org

run code in 300+ PHP versions simultaneously
<?php $items = array(array(1,1),array(2,2),array(3,3),array(4,4),array(5,5)); print_r($items[array_rand($items, 3)];);

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.340.0170.04019.15
5.4.320.0270.04718.96
5.4.310.0270.06318.95
5.4.300.0270.04719.08
5.4.290.0200.07319.23
5.4.280.0230.07018.98
5.4.270.0130.04718.84
5.4.260.0230.05318.84
5.4.250.0130.04019.20
5.4.240.0200.04019.14
5.4.230.0130.04019.08
5.4.220.0130.07018.86
5.4.210.0170.03719.11
5.4.200.0270.06719.16
5.4.190.0200.07019.13
5.4.180.0230.07319.25
5.4.170.0230.06019.13
5.4.160.0270.04319.19
5.4.150.0200.07719.07
5.4.140.0300.06316.46
5.4.130.0200.04016.29
5.4.120.0230.06316.32
5.4.110.0270.03016.56
5.4.100.0270.06716.25
5.4.90.0330.03716.19
5.4.80.0130.06016.44
5.4.70.0270.06716.52
5.4.60.0300.05316.49
5.4.50.0470.04716.54
5.4.40.0230.06716.33
5.4.30.0270.03716.43
5.4.20.0200.04016.53
5.4.10.0200.03316.16
5.4.00.0230.04015.90
5.3.290.0230.07314.52
5.3.280.0300.06014.54
5.3.270.0170.05714.65
5.3.260.0170.04314.46
5.3.250.0330.04014.46
5.3.240.0270.07714.46
5.3.230.0270.05014.55
5.3.220.0300.04014.41
5.3.210.0200.05314.43
5.3.200.0200.05014.55
5.3.190.0230.06014.61
5.3.180.0230.04714.66
5.3.170.0200.03714.52
5.3.160.0170.04714.42
5.3.150.0170.04314.40
5.3.140.0200.06714.51
5.3.130.0200.07714.41
5.3.120.0130.05014.41
5.3.110.0330.06014.43
5.3.100.0270.06713.98
5.3.90.0230.06313.87
5.3.80.0170.04713.87
5.3.70.0200.05713.84
5.3.60.0200.04313.95
5.3.50.0200.04013.96
5.3.40.0270.04313.80
5.3.30.0230.02713.78
5.3.20.0170.04013.60
5.3.10.0130.04013.50
5.3.00.0170.03713.48
5.2.170.0230.04713.32
5.2.160.0130.03313.32
5.2.150.0130.03013.32
5.2.140.0130.04313.32
5.2.130.0170.05313.32
5.2.120.0200.05313.32
5.2.110.0200.03713.32
5.2.100.0130.04313.32
5.2.90.0230.04713.32
5.2.80.0200.03013.32
5.2.70.0170.03013.32
5.2.60.0170.03713.32
5.2.50.0230.03013.32
5.2.40.0100.03013.32
5.2.30.0270.04713.32
5.2.20.0270.05313.32
5.2.10.0270.04713.32
5.2.00.0230.05313.32
5.1.60.0200.03013.32
5.1.50.0200.04013.32
5.1.40.0170.04313.32
5.1.30.0200.06313.32
5.1.20.0130.05313.32
5.1.10.0200.02713.32
5.1.00.0170.05313.32
5.0.50.0170.03313.32
5.0.40.0100.02713.32
5.0.30.0100.04013.32
5.0.20.0130.03013.32
5.0.10.0100.01713.32
5.0.00.0030.03313.32
4.4.90.0100.01713.32
4.4.80.0070.03713.32
4.4.70.0100.03713.32
4.4.60.0070.03013.32
4.4.50.0100.02013.32
4.4.40.0070.02713.32
4.4.30.0030.01713.32
4.4.20.0070.03713.32
4.4.10.0130.01313.32
4.4.00.0070.02313.32
4.3.110.0100.03713.32
4.3.100.0100.01313.32
4.3.90.0000.03313.32
4.3.80.0070.03313.32
4.3.70.0100.03313.32
4.3.60.0170.02313.32
4.3.50.0100.01713.32
4.3.40.0070.04313.32
4.3.30.0030.03013.32
4.3.20.0030.02013.32
4.3.10.0030.02313.32
4.3.00.0030.02313.32

preferences:
135.19 ms | 1398 KiB | 7 Q