3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array ( 'wwqw' => 'reqrewrwerwer', 'ttyu' => 'sdfgd gdfg ', 'aaaa' => 'gfg gdfg', 'bbbb' => 'ffdsd', ); print_r (array_values(ksort($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.3.40.0070.00718.85
8.3.30.0130.00020.17
8.3.20.0050.00220.07
8.3.10.0070.00021.84
8.3.00.0050.00322.39
8.2.170.0140.00322.96
8.2.160.0160.00322.08
8.2.150.0030.00724.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00820.61
8.2.110.0090.00022.11
8.2.100.0000.01217.78
8.2.90.0000.00819.09
8.2.80.0040.00419.21
8.2.70.0030.00517.50
8.2.60.0030.00617.91
8.2.50.0000.00818.07
8.2.40.0000.00918.03
8.2.30.0000.00819.38
8.2.20.0000.00717.62
8.2.10.0040.00417.73
8.2.00.0040.00417.79
8.1.270.0000.00723.99
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00323.92
8.1.230.0070.00419.09
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0030.00717.35
8.1.190.0040.00417.40
8.1.180.0030.00519.01
8.1.170.0060.00318.53
8.1.160.0060.00618.87
8.1.150.0000.00918.62
8.1.140.0040.00417.25
8.1.130.0070.00017.81
8.1.120.0000.00717.39
8.1.110.0000.00917.40
8.1.100.0000.00717.37
8.1.90.0000.00717.39
8.1.80.0040.00417.40
8.1.70.0000.00817.36
8.1.60.0040.00417.50
8.1.50.0080.00017.49
8.1.40.0080.00017.44
8.1.30.0000.00817.52
8.1.20.0000.00817.62
8.1.10.0000.00817.59
8.1.00.0030.00517.51
8.0.300.0070.00018.77
8.0.290.0000.00717.18
8.0.280.0000.00718.24
8.0.270.0050.00317.18
8.0.260.0030.00318.52
8.0.250.0000.00716.90
8.0.240.0040.00716.81
8.0.230.0040.00416.83
8.0.220.0070.00016.80
8.0.210.0000.00716.87
8.0.200.0060.00016.85
8.0.190.0000.00816.95
8.0.180.0000.00716.93
8.0.170.0000.00716.83
8.0.160.0000.00716.87
8.0.150.0080.00016.71
8.0.140.0040.00416.88
8.0.130.0000.00513.32
8.0.120.0000.00816.73
8.0.110.0040.00416.92
8.0.100.0000.00816.83
8.0.90.0070.00016.76
8.0.80.0060.01616.84
8.0.70.0050.00216.89
8.0.60.0000.00816.75
8.0.50.0030.00516.91
8.0.30.0110.00917.06
8.0.20.0110.00817.40
8.0.10.0040.00516.94
8.0.00.0100.01116.86
7.4.330.0030.00315.00
7.4.320.0070.00016.42
7.4.300.0060.00016.50
7.4.290.0000.00716.50
7.4.280.0070.00016.54
7.4.270.0030.00316.41
7.4.260.0030.00313.23
7.4.250.0000.00816.38
7.4.240.0020.00516.39
7.4.230.0030.00316.51
7.4.220.0100.01216.62
7.4.210.0080.00816.44
7.4.200.0040.00416.54
7.4.190.0000.00816.69
7.4.160.0050.01116.49
7.4.150.0120.00617.40
7.4.140.0140.00317.86
7.4.130.0070.01016.41
7.4.120.0120.00616.44
7.4.110.0110.00616.30
7.4.100.0070.01316.48
7.4.90.0040.01516.38
7.4.80.0140.00319.39
7.4.70.0130.00716.43
7.4.60.0100.00716.34
7.4.50.0000.00816.22
7.4.40.0080.00822.77
7.4.30.0100.00716.43
7.4.00.0050.00814.80
7.3.330.0030.00312.94
7.3.320.0000.00513.13
7.3.310.0070.00016.05
7.3.300.0030.00316.09
7.3.290.0070.00716.25
7.3.280.0100.00816.25
7.3.270.0160.00617.40
7.3.260.0100.00716.34
7.3.250.0060.01216.37
7.3.240.0060.01216.20
7.3.230.0130.00616.39
7.3.210.0130.00616.27
7.3.200.0070.02019.39
7.3.190.0130.00616.34
7.3.180.0090.00616.12
7.3.170.0060.00916.27
7.3.160.0130.00416.18
7.3.120.0080.00514.87
7.3.110.0030.00614.74
7.3.100.0090.00614.89
7.3.90.0030.00714.48
7.3.80.0130.00014.75
7.3.70.0030.01314.50
7.3.60.0060.01014.77
7.3.50.0070.01114.82
7.3.40.0040.01214.61
7.3.30.0110.00314.44
7.3.20.0000.01716.33
7.3.10.0040.01116.51
7.3.00.0000.00916.75
7.2.330.0070.01316.47
7.2.320.0070.01016.55
7.2.310.0110.00516.23
7.2.300.0120.00616.23
7.2.290.0080.00816.54
7.2.250.0100.00215.04
7.2.240.0070.00714.84
7.2.230.0030.01315.02
7.2.220.0090.00614.78
7.2.210.0070.00715.11
7.2.200.0040.00714.95
7.2.190.0040.01214.92
7.2.180.0070.00714.66
7.2.170.0040.01214.83
7.2.00.0090.00618.96
7.1.330.0060.00615.55
7.1.320.0070.00315.88
7.1.310.0090.00615.51
7.1.300.0080.00815.62
7.1.290.0000.01415.70
7.1.280.0040.01115.59
7.1.270.0080.00815.50
7.1.260.0090.00315.63
7.1.100.0060.00917.75
7.1.70.0000.01017.05
7.1.60.0130.01019.32
7.1.50.0040.02116.79
7.1.00.0000.05722.48
7.0.200.0000.00816.70
7.0.140.0030.07721.97
7.0.60.0070.06019.93
7.0.50.0100.04317.81
7.0.40.0100.07020.06
7.0.30.0330.06720.00
7.0.20.0230.08320.04
7.0.10.0070.06720.04
7.0.00.0130.07720.19
5.6.280.0000.07721.01
5.6.210.0070.08720.46
5.6.200.0130.04018.18
5.6.190.0000.04720.58
5.6.180.0270.06320.58
5.6.170.0300.04320.71
5.6.160.0030.07320.48
5.6.150.0100.07718.12
5.6.140.0070.05718.09
5.6.130.0070.07018.12
5.6.120.0070.04021.11
5.6.110.0070.05721.07
5.6.100.0070.05721.13
5.6.90.0070.04321.00
5.6.80.0100.07720.48
5.5.350.0200.06720.34
5.5.340.0000.04717.93
5.5.330.0270.03320.25
5.5.320.0100.05320.32
5.5.310.0300.07020.20
5.5.300.0030.04317.96
5.5.290.0100.03317.92
5.5.280.0130.06020.72
5.5.270.0130.08020.72
5.5.260.0070.05320.86
5.5.250.0030.09020.45
5.5.240.0000.05020.11
5.4.450.4300.03719.26
5.4.440.3500.03319.39
5.4.430.3700.03319.41
5.4.420.2930.03719.22
5.4.410.3400.04019.13
5.4.400.3570.03719.11
5.4.390.3770.03319.08
5.4.380.4000.03719.24
5.4.370.3100.03319.08
5.4.360.3630.03318.95
5.4.350.3030.04318.91
5.4.340.3400.03319.27
5.4.320.3030.03319.10
5.4.310.3300.04019.09
5.4.300.3200.03019.24
5.4.290.3870.03319.10
5.4.280.3230.03719.10
5.4.270.3400.03318.80
5.4.260.3470.03319.08
5.4.250.3270.04319.07
5.4.240.3600.03319.21
5.4.230.3970.03719.03
5.4.220.3470.03719.13
5.4.210.3330.04319.08
5.4.200.4030.04019.23
5.4.190.3400.03719.07
5.4.180.3370.04019.23
5.4.170.3230.04318.79
5.4.160.3300.03319.20
5.4.150.3370.03718.79
5.4.140.3400.04316.45
5.4.130.3300.03716.30
5.4.120.3400.02716.29
5.4.110.3470.03316.41
5.4.100.3300.04316.39
5.4.90.3170.03716.43
5.4.80.3970.04016.07
5.4.70.3300.03716.32
5.4.60.3730.03716.45
5.4.50.3300.03316.40
5.4.40.3430.04016.31
5.4.30.3400.03016.20
5.4.20.3430.03316.36
5.4.10.3170.03716.18
5.4.00.3170.03715.68
5.3.290.3770.04314.61
5.3.280.3400.04014.50
5.3.270.3370.04314.70
5.3.260.2970.03714.58
5.3.250.3330.04314.47
5.3.240.3500.03014.46
5.3.230.3630.04314.61
5.3.220.3230.03714.39
5.3.210.3400.03714.40
5.3.200.3300.03714.61
5.3.190.3170.03314.44
5.3.180.2600.03714.50
5.3.170.2400.03014.40
5.3.160.3100.03314.39
5.3.150.3570.04014.39
5.3.140.3200.03714.43
5.3.130.3130.04014.42
5.3.120.3770.04714.49
5.3.110.3030.03314.55
5.3.100.3200.03713.91
5.3.90.3070.03713.97
5.3.80.2730.03313.92
5.3.70.3170.04013.85
5.3.60.2800.04013.87
5.3.50.3800.03713.82
5.3.40.3230.03313.78
5.3.30.2970.03313.68
5.3.20.3030.03013.54
5.3.10.2900.03013.61
5.3.00.2900.03313.65
5.2.170.2600.03011.30
5.2.160.2600.02711.05
5.2.150.2870.03011.19
5.2.140.2700.03310.98
5.2.130.3330.02311.12
5.2.120.2600.03311.04
5.2.110.2870.03011.00
5.2.100.2800.02710.95
5.2.90.2570.03311.15
5.2.80.2900.03011.04
5.2.70.2630.02311.25
5.2.60.2970.03711.07
5.2.50.2600.02710.85
5.2.40.2430.03010.93
5.2.30.2330.03010.81
5.2.20.2230.03310.87
5.2.10.2370.03010.77
5.2.00.2370.02310.73
5.1.60.2130.02010.73
5.1.50.2170.02310.73
5.1.40.2200.02310.73
5.1.30.2270.02710.73
5.1.20.2400.02310.73
5.1.10.2370.02710.73
5.1.00.2400.02310.73
5.0.50.1330.02310.73
5.0.40.1300.02010.73
5.0.30.1030.03310.73
5.0.20.1300.02710.73
5.0.10.1100.02010.73
5.0.00.1330.03310.73
4.4.90.1170.01710.73
4.4.80.1300.02010.73
4.4.70.1300.02310.73
4.4.60.1300.02010.73
4.4.50.1230.02010.73
4.4.40.1130.02010.73
4.4.30.1300.01710.73
4.4.20.1000.01710.73
4.4.10.1200.02010.73
4.4.00.1330.02010.73
4.3.110.1300.02010.73
4.3.100.1230.02010.73
4.3.90.1270.02010.73
4.3.80.1270.03010.73
4.3.70.1170.01710.73
4.3.60.1130.01310.73
4.3.50.1070.01310.73
4.3.40.1370.02310.73
4.3.30.0630.02310.73
4.3.20.0630.01310.73
4.3.10.0730.02710.73
4.3.00.0670.02310.73

preferences:
41.42 ms | 400 KiB | 5 Q