3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ "2" => "abc", "3" => "aBc", "65" => "Abc", "ab" => "abc12", "lkT" => 2, 45 => "test", "This" => "is this", false => "abc012", " " => 22.22, ]; print_r($array); uasort($array, function ($x, $y){ return $x >= $y; }); print_r($array);

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.3.130.0000.01116.63
8.3.120.0040.00418.81
8.3.110.0060.00920.94
8.3.100.0090.00024.06
8.3.90.0110.00426.77
8.3.80.0030.00716.50
8.3.70.0090.00616.58
8.3.60.0110.00718.30
8.3.50.0100.01018.30
8.3.40.0060.01218.43
8.3.30.0040.01118.71
8.3.20.0060.00821.95
8.3.10.0040.00420.78
8.3.00.0040.00421.85
8.2.250.0060.00918.60
8.2.240.0150.00417.23
8.2.230.0080.00022.58
8.2.220.0000.00837.54
8.2.210.0120.00626.77
8.2.200.0040.00416.75
8.2.190.0200.00316.58
8.2.180.0110.00725.92
8.2.170.0120.00322.96
8.2.160.0070.00722.19
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0050.00226.16
8.2.120.0040.00419.77
8.2.110.0040.00822.25
8.2.100.0120.00018.03
8.2.90.0070.00020.59
8.2.80.0030.00617.97
8.2.70.0080.00017.93
8.2.60.0000.00818.09
8.2.50.0040.00419.38
8.2.40.0000.00719.52
8.2.30.0000.00720.30
8.2.20.0040.00417.95
8.2.10.0040.00418.99
8.2.00.0040.00418.20
8.1.300.0100.01017.85
8.1.290.0000.00918.88
8.1.280.0090.00625.92
8.1.270.0040.00422.60
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0080.00322.61
8.1.230.0080.00321.10
8.1.220.0000.00817.79
8.1.210.0040.00418.91
8.1.200.0060.00317.35
8.1.190.0030.00617.36
8.1.180.0030.00518.10
8.1.170.0000.00818.65
8.1.160.0000.00718.84
8.1.150.0000.00718.80
8.1.140.0030.00320.18
8.1.130.0060.00321.99
8.1.120.0030.00717.48
8.1.110.0040.00417.34
8.1.100.0000.00917.41
8.1.90.0050.00317.46
8.1.80.0030.00517.46
8.1.70.0030.00317.37
8.1.60.0000.00817.61
8.1.50.0040.00417.57
8.1.40.0080.00017.53
8.1.30.0070.00417.54
8.1.20.0090.00017.64
8.1.10.0000.00817.48
8.1.00.0020.00517.38
8.0.300.0000.00719.89
8.0.290.0020.00516.75
8.0.280.0050.00318.44
8.0.270.0050.00217.30
8.0.260.0000.00718.49
8.0.250.0080.00316.96
8.0.240.0030.00317.06
8.0.230.0070.00017.06
8.0.220.0070.00017.01
8.0.210.0000.00716.93
8.0.200.0060.00017.05
8.0.190.0000.00817.02
8.0.180.0040.00416.88
8.0.170.0030.00616.96
8.0.160.0050.00216.96
8.0.150.0040.00416.98
8.0.140.0040.00416.88
8.0.130.0060.00013.43
8.0.120.0040.00416.90
8.0.110.0020.00517.07
8.0.100.0040.00416.90
8.0.90.0000.00717.02
8.0.80.0090.00616.84
8.0.70.0040.00416.80
8.0.60.0050.00216.95
8.0.50.0040.00416.89
8.0.30.0000.01917.08
8.0.20.0070.01117.03
8.0.10.0040.00416.95
8.0.00.0120.00916.59
7.4.330.0000.00515.55
7.4.320.0030.00316.52
7.4.300.0000.00616.42
7.4.290.0070.00016.59
7.4.280.0080.00016.59
7.4.270.0000.00816.57
7.4.260.0080.00016.49
7.4.250.0040.00416.53
7.4.240.0090.00016.52
7.4.230.0030.00516.50
7.4.220.0000.00716.30
7.4.210.0080.00816.65
7.4.200.0040.00416.50
7.4.140.0090.01117.86
7.4.130.0130.00416.47
7.4.120.0180.00916.46
7.4.110.0100.01316.55
7.4.100.0140.00416.56
7.4.90.0100.00616.33
7.4.80.0180.00719.39
7.4.70.0160.00816.69
7.4.60.0100.00616.20
7.4.50.0110.00416.47
7.4.40.0100.00716.47
7.4.10.0120.00614.72
7.4.00.0060.01214.91
7.3.330.0000.00513.15
7.3.320.0000.00513.07
7.3.310.0050.00216.19
7.3.300.0070.00016.18
7.3.290.0030.01316.30
7.3.280.0050.01416.26
7.3.260.0110.01016.40
7.3.240.0120.00616.38
7.3.230.0180.00316.52
7.3.210.0100.00716.44
7.3.200.0120.00616.57
7.3.190.0080.00816.27
7.3.180.0100.00516.48
7.3.170.0120.00416.21
7.3.160.0060.01516.56
7.3.130.0130.00614.59
7.3.120.0070.01014.76
7.3.110.0090.00914.89
7.3.100.0070.00814.59
7.3.90.0010.01314.70
7.3.80.0070.00714.75
7.3.70.0060.00514.83
7.3.60.0050.00614.69
7.3.50.0030.01014.73
7.3.40.0070.00714.84
7.3.30.0070.01014.71
7.3.20.0060.00816.17
7.3.10.0060.00816.23
7.3.00.0080.00716.19
7.2.330.0040.01416.66
7.2.320.0070.01416.59
7.2.310.0110.01016.73
7.2.300.0100.00716.57
7.2.290.0070.01116.66
7.2.260.0100.01015.19
7.2.250.0060.01315.10
7.2.240.0080.01014.95
7.2.230.0060.01014.95
7.2.220.0040.01015.08
7.2.210.0060.00914.80
7.2.200.0070.00314.80
7.2.190.0030.00915.01
7.2.180.0110.00514.80
7.2.170.0080.00814.92
7.2.160.0070.00814.90
7.2.150.0100.01115.76
7.2.140.0190.00416.11
7.2.130.1960.00915.89
7.2.120.0080.01215.88
7.2.110.0070.00715.85
7.2.100.0070.00715.88
7.2.90.0070.00715.97
7.2.80.0130.00715.91
7.2.70.0110.00715.74
7.2.60.0040.01015.98
7.2.50.0140.00216.04
7.2.40.0090.00915.93
7.2.30.0100.01015.88
7.2.20.0080.00815.96
7.2.10.0060.00915.85
7.2.00.0190.00815.99
7.1.330.0080.00615.70
7.1.320.0050.00615.71
7.1.310.0040.01215.84
7.1.300.0070.00615.66
7.1.290.0090.00515.81
7.1.280.0050.01115.30
7.1.270.0070.00715.33
7.1.260.0110.00415.37
7.1.250.0100.01214.73
7.1.240.0000.01415.79
7.1.230.0000.01215.70
7.1.220.0030.01015.62
7.1.210.0030.00715.48
7.1.200.0000.01215.79
7.1.190.0040.00715.84
7.1.180.0060.00315.88
7.1.170.0030.01015.88
7.1.160.0070.00715.73
7.1.150.0030.01415.53
7.1.140.0150.00015.71
7.1.130.0040.00415.78
7.1.120.0000.00815.89
7.1.110.0070.00715.44
7.1.100.0070.00715.88
7.1.90.0070.00715.86
7.1.80.0030.01315.91
7.1.70.0030.00715.83
7.1.60.0070.00315.90
7.1.50.0070.00715.83
7.1.40.0100.00315.84
7.1.30.0030.00715.55
7.1.20.0030.01015.59
7.1.10.0040.00915.47
7.1.00.0000.01015.61

preferences:
26.47 ms | 403 KiB | 5 Q