3v4l.org

run code in 300+ PHP versions simultaneously
<?php $player = array("lawrence","joey","jason","joel","bianca","paulo","albert"); shuffle($player); $player2 = $player; $combined = array_combine($player, array_unshift($player, array_pop($player))); print_r($combined);

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.4.10.0070.01114.56
7.4.00.0030.00814.93
7.3.130.0060.01014.51
7.3.120.0060.00614.59
7.3.110.0110.00314.76
7.3.100.0090.00414.70
7.3.90.0050.00714.55
7.3.80.0030.01014.80
7.3.70.0070.00514.64
7.3.60.0090.00414.73
7.3.50.0030.01114.85
7.3.40.0060.00514.77
7.3.30.0060.00614.77
7.3.20.0060.00716.69
7.3.10.0070.00516.58
7.3.00.0040.00916.70
7.2.260.0040.01415.07
7.2.250.0060.00914.85
7.2.240.0040.00914.97
7.2.230.0040.00914.72
7.2.220.0040.00914.74
7.2.210.0040.00914.92
7.2.200.0060.00614.95
7.2.190.0050.00714.88
7.2.180.0070.00715.00
7.2.170.0060.00614.95
7.2.160.0130.00014.90
7.2.150.0070.00316.58
7.2.140.0070.00716.55
7.2.130.0130.00316.85
7.2.120.0030.01016.45
7.2.110.0030.00616.59
7.2.100.0060.00616.49
7.2.90.0040.00816.63
7.2.80.0040.01116.47
7.2.70.0060.00616.45
7.2.60.0110.00416.89
7.2.50.0160.00016.82
7.2.40.0040.00716.63
7.2.30.0040.01116.94
7.2.20.0060.00916.70
7.2.10.0040.01216.63
7.2.00.0040.00716.84
7.1.330.0070.00515.67
7.1.320.0040.00915.51
7.1.310.0000.01215.84
7.1.300.0020.00715.84
7.1.290.0020.00715.53
7.1.280.0040.00515.85
7.1.270.0060.00615.70
7.1.260.0020.01115.75
7.1.250.0060.00615.71
7.1.240.0100.00315.50
7.1.230.0130.00015.79
7.1.220.0030.00715.78
7.1.210.0100.00015.75
7.1.200.0030.01015.64
7.1.190.0060.00615.85
7.1.180.0090.00915.72
7.1.170.0040.00415.43
7.1.160.0040.01115.72
7.1.150.0030.00915.64
7.1.140.0080.00415.55
7.1.130.0080.00815.47
7.1.120.0080.00415.53
7.1.110.0040.01115.77
7.1.100.0080.00515.71
7.1.90.0070.00715.75
7.1.80.0140.00315.86
7.1.70.0090.00216.42
7.1.60.0070.01117.73
7.1.50.0060.01316.20
7.1.40.0040.00815.66
7.1.30.0000.01415.55
7.1.20.0090.00015.74
7.1.10.0030.00915.64
7.1.00.0050.04119.14
7.0.330.0060.00615.24
7.0.320.0060.00315.21
7.0.310.0070.00315.37
7.0.300.0090.00015.07
7.0.290.0000.01515.26
7.0.280.0050.00515.51
7.0.270.0070.00815.13
7.0.260.0070.00415.29
7.0.250.0140.00015.43
7.0.240.0060.01015.35
7.0.230.0120.00315.29
7.0.220.0070.01015.48
7.0.210.0060.00615.38
7.0.200.0000.01116.10
7.0.190.0060.00615.24
7.0.180.0030.00515.20
7.0.170.0080.00515.45
7.0.160.0060.00615.29
7.0.150.0030.01015.07
7.0.140.0030.04018.70
7.0.130.0080.00015.43
7.0.120.0030.01015.07
7.0.110.0030.00615.28
7.0.100.0100.04217.53
7.0.90.0050.05017.46
7.0.80.0070.03717.71
7.0.70.0030.02417.60
7.0.60.0070.02217.50
7.0.50.0080.01817.80
7.0.40.0040.02416.74
7.0.30.0070.02216.82
7.0.20.0060.03616.79
7.0.10.0080.02116.66
7.0.00.0040.02516.76
5.6.400.0000.01614.09
5.6.390.0060.00614.52
5.6.380.0060.00914.25
5.6.370.0040.01113.77
5.6.360.0030.01414.21
5.6.350.0090.00614.14
5.6.340.0030.01014.13
5.6.330.0090.00613.89
5.6.320.0090.00614.23
5.6.310.0110.00313.98
5.6.300.0060.00614.46
5.6.290.0000.00814.33
5.6.280.0070.03917.64
5.6.270.0000.01513.98
5.6.260.0040.00713.91
5.6.250.0110.04317.53
5.6.240.0050.05017.37
5.6.230.0130.04017.38
5.6.220.0050.02617.44
5.6.210.0070.02417.37
5.6.200.0030.02717.60
5.6.190.0030.02717.76
5.6.180.0060.02117.55
5.6.170.0050.02517.77
5.6.160.0080.02117.65
5.6.150.0030.02417.57
5.6.140.0050.02417.57
5.6.130.0020.02717.50
5.6.120.0030.02117.66
5.6.110.0050.02817.64
5.6.100.0030.02717.57
5.6.90.0080.02217.62
5.6.80.0040.02517.36
5.6.70.0050.02317.19
5.6.60.0070.02617.29
5.6.50.0000.02917.29
5.6.40.0050.02517.34
5.6.30.0070.02317.45
5.6.20.0120.02017.41
5.6.10.0030.02617.18
5.6.00.0030.04317.31
5.5.380.0070.04317.23
5.5.370.0030.03017.29
5.5.360.0070.02417.23
5.5.350.0090.02017.41
5.5.340.0070.02217.46
5.5.330.0050.02317.59
5.5.320.0070.03317.43
5.5.310.0040.02317.43
5.5.300.0020.02517.47
5.5.290.0030.03317.58
5.5.280.0090.02017.26
5.5.270.0040.02617.42
5.5.260.0120.01717.48
5.5.250.0040.02717.36
5.5.240.0050.02317.03
5.5.230.0080.01617.14
5.5.220.0070.02017.11
5.5.210.0030.02517.14
5.5.200.0070.02017.14
5.5.190.0030.02517.20
5.5.180.0040.02417.16
5.5.170.0100.00014.07
5.5.160.0030.02717.23
5.5.150.0120.03317.03
5.5.140.0050.04317.24
5.5.130.0020.02617.16
5.5.120.0050.03217.04
5.5.110.0030.04316.96
5.5.100.0130.03616.96
5.5.90.0020.03817.08
5.5.80.0030.02917.07
5.5.70.0040.04117.08
5.5.60.0080.03317.14
5.5.50.0000.02717.04
5.5.40.0100.03316.87
5.5.30.0020.04716.86
5.5.20.0070.02917.13
5.5.10.0090.03216.94
5.5.00.0080.03716.85
5.4.450.0030.02515.76
5.4.440.0030.02415.71
5.4.430.0020.03215.68
5.4.420.0070.02115.77
5.4.410.0060.02215.56
5.4.400.0030.02115.59
5.4.390.0050.02015.55
5.4.380.0080.01715.56
5.4.370.0050.02115.60
5.4.360.0050.01915.58
5.4.350.0000.02715.53
5.4.340.0000.02415.47
5.4.330.0030.01012.12
5.4.320.0020.02315.45
5.4.310.0060.02115.51
5.4.300.0060.02015.54
5.4.290.0020.03415.60
5.4.280.0030.03315.58
5.4.270.0070.03715.59
5.4.260.0060.02815.51
5.4.250.0050.04015.67
5.4.240.0100.03615.58
5.4.230.0070.03315.63
5.4.220.0070.03815.46
5.4.210.0030.03515.54
5.4.200.0020.02515.58
5.4.190.0050.02215.46
5.4.180.0100.03715.59
5.4.170.0050.02415.53
5.4.160.0080.04015.66
5.4.150.0070.04215.62
5.4.140.0080.03314.21
5.4.130.0080.03814.16
5.4.120.0030.03914.20
5.4.110.0050.02814.19
5.4.100.0070.04314.22
5.4.90.0050.04214.21
5.4.80.0030.04414.18
5.4.70.0070.03514.21
5.4.60.0090.03114.15
5.4.50.0030.03014.23
5.4.40.0020.04014.24
5.4.30.0090.03414.21
5.4.20.0020.03614.25
5.4.10.0050.03814.20
5.4.00.0120.02713.92
5.3.290.0040.02213.39
5.3.280.0030.02513.31
5.3.270.0030.04113.34
5.3.260.0050.04313.34
5.3.250.0040.04413.34
5.3.240.0020.04613.36
5.3.230.0020.04213.35
5.3.220.0100.03313.26
5.3.210.0080.04313.25
5.3.200.0120.03013.26
5.3.190.0040.04413.28
5.3.180.0050.03013.28
5.3.170.0100.03313.34
5.3.160.0050.02413.27
5.3.150.0130.03613.33
5.3.140.0060.03513.30
5.3.130.0050.03813.26
5.3.120.0030.04413.33
5.3.110.0060.04113.33
5.3.100.0030.04012.99
5.3.90.0050.04012.98
5.3.80.0050.02813.04
5.3.70.0030.04313.06
5.3.60.0120.03713.06
5.3.50.0110.02213.03
5.3.40.0070.03913.01
5.3.30.0000.03413.01
5.3.20.0090.03712.83
5.3.10.0070.03312.84
5.3.00.0030.03112.88
5.2.170.0100.05712.19
5.2.160.0070.02712.19
5.2.150.0030.06712.19
5.2.140.0000.06012.19
5.2.130.0030.04012.19
5.2.120.0070.05012.19
5.2.110.0000.05712.19
5.2.100.0070.05312.19
5.2.90.0030.06312.19
5.2.80.0070.06012.19
5.2.70.0030.04312.19
5.2.60.0030.06712.19
5.2.50.0030.05712.19
5.2.40.0030.05012.19
5.2.30.0070.05712.19
5.2.20.0070.05712.19
5.2.10.0030.06312.19
5.2.00.0030.07312.19
5.1.60.0070.05012.19
5.1.50.0030.04712.19
5.1.40.0070.05312.19
5.1.30.0100.05012.19
5.1.20.0070.04012.19
5.1.10.0030.05012.19
5.1.00.0170.04312.19
5.0.50.0070.04312.19
5.0.40.0030.04312.19
5.0.30.0000.07012.19
5.0.20.0030.04312.19
5.0.10.0030.04312.19
5.0.00.0030.06712.19
4.4.90.0030.03312.19
4.4.80.0100.02712.19
4.4.70.0070.01712.19
4.4.60.0030.02312.19
4.4.50.0030.03712.19
4.4.40.0100.05012.19
4.4.30.0000.02012.19
4.4.20.0030.03312.19
4.4.10.0000.03712.19
4.4.00.0000.03712.19
4.3.110.0000.03312.19
4.3.100.0100.01312.19
4.3.90.0000.03012.19
4.3.80.0000.04712.19
4.3.70.0000.03312.19
4.3.60.0000.03712.19
4.3.50.0000.02012.19
4.3.40.0030.05312.19
4.3.30.0000.03712.19
4.3.20.0100.02312.19
4.3.10.0030.02712.19
4.3.00.0000.03712.19

preferences:
44.69 ms | 401 KiB | 5 Q