3v4l.org

run code in 300+ PHP versions simultaneously
<?php $colors = ['red' => '#110000', 'blue' => '000011', 'brown' => '#A52A2A', 'maroon' => '#800000']; function assoc_shuffle ( $arr ) { uasort($arr, function ($a, $b) { return rand(-1, 1); }); return $arr; } print_r( assoc_shuffle( $colors ) );

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.00.0080.00914.90
7.3.120.0070.00914.58
7.3.110.0030.01114.78
7.3.100.0080.00714.72
7.3.90.0090.00614.81
7.3.80.0070.00914.68
7.3.70.0030.01114.54
7.3.60.0060.00714.74
7.3.50.0050.00714.59
7.3.40.0030.01014.73
7.3.30.0040.00614.84
7.3.20.0060.00716.60
7.3.10.0060.00516.54
7.3.00.0060.00716.63
7.2.250.0070.00914.99
7.2.240.0060.00915.02
7.2.230.0080.00814.96
7.2.220.0080.00614.87
7.2.210.0060.00814.88
7.2.200.0040.00914.77
7.2.190.0020.01014.82
7.2.180.0050.00814.87
7.2.170.0040.00914.90
7.2.160.0030.00914.91
7.2.150.0040.01116.93
7.2.140.0030.00916.44
7.2.130.0070.00716.74
7.2.120.0100.00416.71
7.2.110.0440.01015.70
7.2.100.0260.00615.58
7.2.90.0210.00915.69
7.2.80.0400.01215.75
7.2.70.0340.01115.88
7.2.60.0250.00915.71
7.2.50.0290.00515.84
7.2.40.0280.01015.85
7.2.30.0280.00915.91
7.2.20.0330.01315.89
7.2.10.0440.00515.78
7.2.00.0180.00717.01
7.1.330.0050.01115.66
7.1.320.0070.00515.69
7.1.310.0070.00515.62
7.1.300.0060.00615.52
7.1.290.0070.00615.70
7.1.280.0040.00915.72
7.1.270.0060.00715.64
7.1.260.0060.00815.61
7.1.250.0000.01215.61
7.1.230.0740.01013.72
7.1.220.0390.00713.66
7.1.210.0540.01413.88
7.1.200.0530.01313.93
7.1.190.0380.00613.78
7.1.180.0560.00313.93
7.1.170.0390.00713.70
7.1.160.0530.00613.93
7.1.150.0430.00713.91
7.1.140.0800.01013.61
7.1.130.0710.01013.89
7.1.120.0430.01113.88
7.1.110.0580.01013.60
7.1.100.0350.00914.03
7.1.90.0280.00413.71
7.1.80.0240.01013.62
7.1.70.0140.00615.47
7.1.60.0190.01224.38
7.1.50.0220.01424.29
7.1.40.0760.01132.07
7.1.30.0850.01132.18
7.1.20.0670.00832.26
7.1.10.1010.01314.21
7.1.00.0640.00714.12
7.0.310.0500.00913.43
7.0.300.0470.00713.46
7.0.290.0670.00013.63
7.0.280.1370.00313.22
7.0.270.0610.01313.29
7.0.260.0670.00613.48
7.0.250.0710.00713.71
7.0.240.0450.00313.53
7.0.230.0340.00213.47
7.0.220.0270.01013.57
7.0.210.0300.00913.59
7.0.200.0170.00715.11
7.0.190.0270.01113.64
7.0.180.0810.00713.82
7.0.170.0760.00213.95
7.0.160.0690.00513.83
7.0.150.0910.01313.84
7.0.140.2070.01313.74
7.0.130.0520.00814.00
7.0.120.0560.00313.89
7.0.110.0570.00613.89
7.0.100.0500.00813.88
7.0.90.0470.01113.79
7.0.80.0580.00713.83
7.0.70.0590.00813.93
7.0.60.0540.00913.79
7.0.50.0560.00913.94
7.0.40.0590.00513.88
7.0.30.0550.00513.82
7.0.20.0680.00913.83
7.0.10.0500.00813.72
7.0.00.0420.01213.68
5.6.380.0060.00914.29

preferences:
38.63 ms | 403 KiB | 5 Q