3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [1,2,3,4,5,6,7,8,9,10]; $start = microtime(true); shuffle($arr); print_r($arr); echo microtime(true)-$start;

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)
7.2.00.0070.00719.10
7.1.70.0000.00717.15
7.1.60.0070.01419.59
7.1.50.0130.00916.58
7.1.00.0100.07022.31
7.0.200.0470.01014.56
7.0.60.0070.08019.96
7.0.50.0030.04717.85
7.0.40.0070.06020.05
7.0.30.0400.06320.09
7.0.20.0400.07320.30
7.0.10.0300.07720.30
7.0.00.0030.09020.20
5.6.280.0100.05721.13
5.6.210.0070.08720.47
5.6.200.0200.04718.19
5.6.190.0170.07720.64
5.6.180.3570.04020.67
5.6.170.0200.05320.44
5.6.160.0100.08320.46
5.6.150.0100.07718.20
5.6.140.0130.07318.18
5.6.130.0170.07018.18
5.6.120.0130.05021.02
5.6.110.0030.06720.97
5.6.100.0200.07021.13
5.6.90.0130.07720.88
5.6.80.0000.04020.35
5.6.70.0200.07720.35
5.5.350.0200.08720.40
5.5.340.0170.07317.96
5.5.330.0030.04320.42
5.5.320.0300.08020.32
5.5.310.0270.05720.28
5.5.300.0070.03718.07
5.5.290.0100.07717.97
5.5.280.0070.08020.76
5.5.270.0000.09320.87
5.5.260.0100.05020.63
5.5.250.0170.07720.78
5.5.240.0330.07020.16
5.4.450.0770.06319.45
5.4.440.0400.05319.55
5.4.430.0870.06019.61
5.4.420.0800.05719.64
5.4.410.0770.04719.15
5.4.400.0800.05018.91
5.4.390.0830.05719.11
5.4.380.0670.05319.29
5.4.370.0570.05719.00
5.4.360.0630.05319.22
5.4.350.0830.05319.21
5.4.340.0700.05019.08
5.4.320.0770.05719.31
5.4.310.0630.05319.21
5.4.300.0570.06018.95
5.4.290.0870.04719.28
5.4.280.0700.05019.11
5.4.270.0830.05019.15
5.4.260.0900.05018.95
5.4.250.0670.05719.30
5.4.240.0730.04718.94
5.4.230.0900.05019.30
5.4.220.0770.06318.98
5.4.210.0830.04319.11
5.4.200.0570.05716.64
5.4.190.0830.04019.22
5.4.180.0800.04318.98
5.4.170.0130.04719.22
5.4.160.0000.05718.96
5.4.150.0870.05319.21
5.4.140.0800.05316.27
5.4.130.0600.05016.41
5.4.120.0670.04716.34
5.4.110.0600.05016.49
5.4.100.0770.05316.34
5.4.90.0630.05016.59
5.4.80.0600.05016.23
5.4.70.0670.04716.25
5.4.60.0670.05316.51
5.4.50.0530.06316.60
5.4.40.0770.04716.55
5.4.30.0830.04716.24
5.4.20.0930.05316.23
5.4.10.0830.04316.51
5.4.00.0800.04015.95
5.3.290.0730.06314.58
5.3.280.0770.05714.43
5.3.270.0630.06314.58
5.3.260.0670.06014.52
5.3.250.0400.04714.48
5.3.240.0100.05014.45
5.3.230.0500.05314.48
5.3.220.0900.04314.44
5.3.210.0900.05014.36
5.3.200.0770.05314.59
5.3.190.0770.05314.50
5.3.180.0830.05014.48
5.3.170.0770.05014.43
5.3.160.0830.04714.39
5.3.150.0930.04014.44
5.3.140.0870.04314.56
5.3.130.0670.05314.45
5.3.120.0730.05714.53
5.3.110.0800.05314.42
5.3.100.0800.04713.89
5.3.90.0870.04313.91
5.3.80.0670.06013.84
5.3.70.0930.04713.80
5.3.60.0970.04713.86
5.3.50.0900.04013.86
5.3.40.0870.04713.89
5.3.30.0770.05013.80
5.3.20.0830.05313.53
5.3.10.0830.04713.55
5.3.00.0900.05313.47
5.2.170.0530.04011.07
5.2.160.0570.04011.19
5.2.150.0670.04011.14
5.2.140.0430.06011.00
5.2.130.0070.05311.04
5.2.120.0000.04311.09
5.2.110.0500.04011.04
5.2.100.0830.03711.15
5.2.90.0700.03710.98
5.2.80.0600.04711.14
5.2.70.0630.05011.19
5.2.60.0730.04310.87
5.2.50.0600.04311.06
5.2.40.0500.04311.07
5.2.30.0530.04010.88
5.2.20.0500.04010.80
5.2.10.0570.03310.90
5.2.00.0500.04010.71
5.1.60.0470.03710.04
5.1.50.0500.0379.83
5.1.40.0370.03710.05
5.1.30.0400.03710.29
5.1.20.0500.02710.25
5.1.10.0470.03010.05
5.1.00.0500.03710.16
5.0.50.0170.0338.58
5.0.40.0230.0308.33
5.0.30.0330.0378.31
5.0.20.0270.0278.35
5.0.10.0230.0308.22
5.0.00.0270.0508.07
4.4.90.0300.0205.79
4.4.80.0270.0235.86
4.4.70.0230.0175.83
4.4.60.0170.0235.75
4.4.50.0200.0235.81
4.4.40.0230.0335.81
4.4.30.0230.0235.74
4.4.20.0270.0175.86
4.4.10.0230.0205.96
4.4.00.0270.0305.87
4.3.110.0270.0175.79
4.3.100.0170.0275.66
4.3.90.0170.0235.77
4.3.80.0200.0335.66
4.3.70.0270.0135.74
4.3.60.0270.0205.66
4.3.50.0270.0205.82
4.3.40.0370.0305.64
4.3.30.0200.0174.52
4.3.20.0130.0234.39
4.3.10.0170.0204.38
4.3.00.0100.02310.80

preferences:
53.93 ms | 403 KiB | 5 Q