3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ "89098"=> "one", "aaaa123" => "two", "9" => "three", 5 => "four", "7!?2,,--" => "five", ]; uksort($arr, function($a, $b){ return $a > $b; }); var_dump($arr); uksort($arr, function($a, $b){ $a = str_rot13($a); $b = str_rot13($b); return strcmp($a, $b); }); var_dump($arr);

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)
8.4.20.0130.00618.80
8.4.10.0030.00619.36
8.3.140.0060.00920.51
8.3.130.0030.00618.43
8.3.120.0060.00318.86
8.3.110.0060.00320.94
8.3.100.0030.01224.06
8.3.90.0030.00526.77
8.3.80.0090.00018.55
8.3.70.0150.00416.63
8.3.60.0070.00718.40
8.3.50.0120.00918.43
8.3.40.0090.00618.45
8.3.30.0000.01418.62
8.3.20.0050.00221.76
8.3.10.0030.00518.92
8.3.00.0070.00021.94
8.2.260.0060.01317.11
8.2.250.0000.00816.58
8.2.240.0160.00317.30
8.2.230.0060.00322.58
8.2.220.0040.00837.54
8.2.210.0050.00326.77
8.2.200.0090.00018.54
8.2.190.0150.00716.63
8.2.180.0060.00925.92
8.2.170.0100.01019.09
8.2.160.0130.00620.75
8.2.150.0060.00324.18
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0000.00820.62
8.2.110.0030.00722.11
8.2.100.0080.00317.91
8.2.90.0000.00819.27
8.2.80.0000.00817.97
8.2.70.0000.00817.50
8.2.60.0050.00317.93
8.2.50.0090.00018.07
8.2.40.0050.00318.34
8.2.30.0090.00017.98
8.2.20.0070.00018.07
8.2.10.0040.00418.99
8.2.00.0060.00319.98
8.1.310.0190.00016.75
8.1.300.0070.00319.63
8.1.290.0030.00718.88
8.1.280.0110.00725.92
8.1.270.0030.00620.89
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00723.90
8.1.230.0040.00820.85
8.1.220.0000.00817.74
8.1.210.0090.00018.77
8.1.200.0060.00317.35
8.1.190.0060.00317.23
8.1.180.0030.00618.10
8.1.170.0050.00318.50
8.1.160.0080.00418.90
8.1.150.0070.00318.64
8.1.140.0040.00420.27
8.1.130.0000.00822.08
8.1.120.0040.00417.51
8.1.110.0030.00717.35
8.1.100.0050.00317.41
8.1.90.0040.00417.47
8.1.80.0000.00717.51
8.1.70.0040.00417.47
8.1.60.0080.00317.58
8.1.50.0000.00917.45
8.1.40.0000.00817.52
8.1.30.0040.00417.56
8.1.20.0000.00717.63
8.1.10.0030.00517.53
8.1.00.0000.00817.50
8.0.300.0070.00018.77
8.0.290.0040.00417.04
8.0.280.0000.00718.50
8.0.270.0040.00417.17
8.0.260.0050.00518.47
8.0.250.0040.00416.92
8.0.240.0030.00316.92
8.0.230.0030.00517.06
8.0.220.0040.00416.83
8.0.210.0000.00717.02
8.0.200.0000.00716.96
8.0.190.0000.00817.02
8.0.180.0040.00416.98
8.0.170.0080.00016.84
8.0.160.0080.00017.04
8.0.150.0040.00416.81
8.0.140.0030.00416.83
8.0.130.0000.00613.33
8.0.120.0080.00016.92
8.0.110.0000.00916.78
8.0.100.0050.00316.84
8.0.90.0050.00316.87
8.0.80.0120.00416.93
8.0.70.0040.00416.83
8.0.60.0070.00016.82
8.0.50.0040.00416.79
8.0.30.0130.00617.19
8.0.20.0170.01316.78
8.0.10.0070.00016.96
8.0.00.0110.01016.83
7.4.330.0000.00515.55
7.4.320.0000.00616.57
7.4.300.0000.00616.51
7.4.290.0040.00416.61
7.4.280.0040.00416.65
7.4.270.0030.00316.49
7.4.260.0000.00716.43
7.4.250.0000.00716.62
7.4.240.0020.00516.54
7.4.230.0070.00016.60
7.4.220.0000.00816.71
7.4.210.0120.00416.58
7.4.200.0030.00316.41
7.4.160.0120.00716.55
7.4.140.0130.00617.86
7.4.130.0100.01016.50
7.4.120.0130.01016.55
7.4.110.0040.01316.48
7.4.100.0170.00016.65
7.4.90.0030.01316.54
7.4.80.0160.00319.39
7.4.70.0090.01516.51
7.4.60.0100.00916.45
7.4.50.0080.00616.30
7.4.40.0100.00716.57
7.4.30.0030.01316.44
7.4.20.0100.00716.09
7.4.10.0100.00716.58
7.4.00.0060.01215.64
7.3.330.0050.00013.13
7.3.320.0000.00613.25
7.3.310.0030.00316.35
7.3.300.0030.00316.30
7.3.290.0040.00416.16
7.3.280.0070.01016.25
7.3.260.0090.00916.45
7.3.240.0110.00716.35
7.3.230.0090.00916.52
7.3.210.0120.00616.54
7.3.200.0030.01316.32
7.3.190.0120.00916.57
7.3.180.0090.01316.48
7.3.170.0140.00516.37
7.3.160.0100.00616.42
7.3.150.0030.01316.52
7.3.140.0000.01516.30
7.3.130.0110.00716.40
7.3.120.0070.01015.20
7.3.110.0070.00915.17
7.3.100.0070.00915.29
7.3.90.0050.01215.15
7.3.80.0080.00815.23
7.3.70.0110.00315.26
7.3.60.0040.00915.06
7.3.50.0080.00915.02
7.3.40.0090.00915.00
7.3.30.0060.00815.01
7.3.20.0100.00716.21
7.3.10.0060.01016.33
7.3.00.0070.00616.18
7.2.330.0090.00916.34
7.2.320.0070.01116.59
7.2.310.0100.01016.77
7.2.300.0130.00516.72
7.2.290.0090.00916.36
7.2.280.0110.00916.29
7.2.270.0070.01016.54
7.2.260.0060.01116.46
7.2.250.0050.01115.82
7.2.240.0100.00715.39
7.2.230.0050.01115.39
7.2.220.0070.00815.39
7.2.210.0070.00715.19
7.2.200.0070.01015.33
7.2.190.0060.01115.17
7.2.180.0090.00615.23
7.2.170.0100.00715.22
7.2.160.0080.01015.22
7.2.150.0140.00316.24
7.2.140.0110.00716.43
7.2.130.0050.00916.34
7.2.120.0130.00816.25
7.2.110.0060.01116.22
7.2.100.0050.01316.25
7.2.90.0080.00816.23
7.2.80.0060.00916.27
7.2.70.0110.01016.27
7.2.60.0060.00916.29
7.2.50.0310.00916.19
7.2.40.0070.01016.30
7.2.30.0070.00816.24
7.2.20.0090.00816.32
7.2.10.0090.00816.30
7.2.00.0100.00716.16
7.1.330.0050.00915.65
7.1.320.0060.00815.68
7.1.310.0040.01015.72
7.1.300.0060.00815.60
7.1.290.0010.01315.74
7.1.280.0060.00915.31
7.1.270.0120.00515.34
7.1.260.0110.00515.39
7.1.250.0090.01115.21
7.1.240.0110.00515.68
7.1.230.0080.00815.62
7.1.220.0100.00715.43
7.1.210.0080.01215.44
7.1.200.0000.01515.46
7.1.190.0070.01015.72
7.1.180.0100.01415.56
7.1.170.0080.00815.45
7.1.160.0090.00915.56
7.1.150.0140.00415.54
7.1.140.0070.01015.51
7.1.130.0120.00615.41
7.1.120.0100.00715.37
7.1.110.0070.01015.52
7.1.100.0060.00915.56
7.1.90.0100.00715.53
7.1.80.0060.00915.65
7.1.70.0060.01015.43
7.1.60.0120.00615.50
7.1.50.0150.00615.56
7.1.40.0150.00615.47
7.1.30.0040.01815.70
7.1.20.0540.00615.52
7.1.10.0110.01115.35
7.1.00.0140.00715.64

preferences:
36.43 ms | 403 KiB | 5 Q