3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array( 'Second', 'First', 'Twentieth', 'Tenth', 'Third', ); $b = array( '2 a', '1 b', '20 c', '10 d', '3 e', ); array_multisort($b, SORT_NATURAL, $a); var_dump($a, $b); array_multisort($b, SORT_LOCALE_STRING, $a); var_dump($a, $b); array_multisort($b, SORT_NATURAL, $a); var_dump($a, SORT_FLAG_CASE, $b);

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.60.0070.00716.75
8.3.50.0100.00521.98
8.3.40.0110.00718.42
8.3.30.0090.00618.96
8.3.20.0090.00020.16
8.3.10.0050.00323.66
8.3.00.0060.00319.38
8.2.180.0090.00618.04
8.2.170.0120.00322.96
8.2.160.0100.00322.17
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0080.00022.25
8.2.110.0030.00721.11
8.2.100.0080.00417.78
8.2.90.0040.00417.72
8.2.80.0040.00417.97
8.2.70.0090.00018.04
8.2.60.0060.00618.08
8.2.50.0000.00818.10
8.2.40.0040.00419.35
8.2.30.0070.00017.84
8.2.20.0040.00417.63
8.2.10.0000.00718.00
8.2.00.0000.00817.49
8.1.280.0030.01425.92
8.1.270.0000.00823.92
8.1.260.0040.01626.35
8.1.250.0070.01128.09
8.1.240.0060.00322.02
8.1.230.0120.00022.68
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0030.00617.10
8.1.180.0060.00318.10
8.1.170.0040.00418.59
8.1.160.0040.00418.82
8.1.150.0000.00718.51
8.1.140.0060.00317.38
8.1.130.0030.00317.82
8.1.120.0050.00217.44
8.1.110.0030.00517.35
8.1.100.0050.00617.43
8.1.90.0000.00717.29
8.1.80.0030.00317.27
8.1.70.0040.00417.25
8.1.60.0060.00317.51
8.1.50.0000.00817.44
8.1.40.0090.00017.42
8.1.30.0030.00517.49
8.1.20.0040.00417.51
8.1.10.0000.00817.48
8.1.00.0050.00217.32
8.0.300.0070.00021.83
8.0.290.0040.00416.63
8.0.280.0030.00318.25
8.0.270.0000.00816.68
8.0.260.0000.00717.13
8.0.250.0000.00716.78
8.0.240.0030.00316.77
8.0.230.0040.00416.79
8.0.220.0000.00716.82
8.0.210.0030.00516.86
8.0.200.0020.00516.91
8.0.190.0040.00416.86
8.0.180.0030.00316.78
8.0.170.0000.00816.87
8.0.160.0000.00716.71
8.0.150.0030.00316.75
8.0.140.0040.00416.69
8.0.130.0030.00313.24
8.0.120.0040.00416.66
8.0.110.0030.00616.86
8.0.100.0040.00416.72
8.0.90.0030.00516.73
8.0.80.0110.00416.85
8.0.70.0000.00716.88
8.0.60.0080.00016.71
8.0.50.0000.00816.85
8.0.30.0090.01216.82
8.0.20.0110.01217.40
8.0.10.0000.00716.91
8.0.00.0170.00216.67
7.4.330.0030.00315.09
7.4.320.0000.00616.39
7.4.300.0000.00616.46
7.4.290.0040.00416.45
7.4.280.0030.00516.44
7.4.270.0030.00416.43
7.4.260.0030.00316.54
7.4.250.0000.00716.41
7.4.240.0040.00416.50
7.4.230.0030.00316.55
7.4.220.0090.00616.47
7.4.210.0100.00516.45
7.4.200.0030.00316.23
7.4.190.0040.00416.62
7.4.160.0060.01216.63
7.4.150.0120.00617.40
7.4.140.0140.00817.86
7.4.130.0090.00816.45
7.4.120.0140.00816.40
7.4.110.0150.00416.36
7.4.100.0150.00316.55
7.4.90.0160.00316.50
7.4.80.0030.01719.39
7.4.70.0160.00716.25
7.4.60.0090.00616.30
7.4.50.0000.00816.38
7.4.40.0130.00622.77
7.4.30.0180.00316.45
7.4.00.0070.01014.80
7.3.330.0050.00012.88
7.3.320.0050.00013.05
7.3.310.0070.00016.21
7.3.300.0000.00716.23
7.3.290.0110.00316.09
7.3.280.0050.01116.10
7.3.270.0170.00717.40
7.3.260.0210.00616.15
7.3.250.0120.00716.26
7.3.240.0100.01316.08
7.3.230.0070.01016.39
7.3.210.0130.00916.07
7.3.200.0200.00919.39
7.3.190.0110.01116.24
7.3.180.0060.00916.32
7.3.170.0060.01316.27
7.3.160.0140.01116.33
7.3.120.0030.01014.53
7.2.330.0080.01116.20
7.2.320.0110.01516.46
7.2.310.0060.01616.58
7.2.300.0150.00316.46
7.2.290.0100.00716.32
7.2.00.0030.00919.21
7.1.100.0000.00918.18
7.1.70.0070.00717.09
7.1.60.0190.00017.19
7.1.50.0040.01116.64
7.1.00.0030.07722.52
7.0.200.0060.01016.56
7.0.140.0100.06722.21
7.0.60.0130.07720.00
7.0.50.0170.06717.78
7.0.40.0000.08720.30
7.0.30.0300.07720.13
7.0.20.0300.06720.00
7.0.10.0100.08320.12
7.0.00.0030.04020.09
5.6.280.0030.07321.14
5.6.210.0170.06720.50
5.6.200.0200.05718.28
5.6.190.0030.06020.77
5.6.180.0300.07720.60
5.6.170.0100.05720.49
5.6.160.0100.08320.49
5.6.150.0130.07318.12
5.6.140.0070.08018.18
5.6.130.0000.04318.11
5.6.120.0200.05321.00
5.6.110.0100.06720.95
5.6.100.0130.07721.10
5.6.90.0030.06020.95
5.6.80.0070.08020.50
5.6.70.4400.04320.47
5.5.350.0100.07720.38
5.5.340.0070.08017.91
5.5.330.0170.07720.43
5.5.320.0000.08020.13
5.5.310.0100.04320.30
5.5.300.0070.07717.88
5.5.290.0100.03317.92
5.5.280.0070.08720.84
5.5.270.0100.04720.82
5.5.260.0070.09020.75
5.5.250.0070.07320.79
5.5.240.0200.02720.36
5.4.450.0030.08319.25
5.4.440.0030.05019.57
5.4.430.0070.05319.13
5.4.420.0000.06019.41
5.4.410.0030.07719.11
5.4.400.0070.06018.79
5.4.390.0070.08019.09
5.4.380.0070.07318.93
5.4.370.0070.05018.79
5.4.360.0070.06719.21
5.4.350.0000.07719.16
5.4.340.0000.08018.79
5.4.320.0130.07019.13
5.4.310.0070.07019.06
5.4.300.0000.06719.21
5.4.290.0000.07718.93
5.4.280.0070.05718.93
5.4.270.0170.06019.09
5.4.260.0030.06319.09
5.4.250.0030.07019.05
5.4.240.0100.06018.80
5.4.230.0130.06319.23
5.4.220.0030.07019.05
5.4.210.0030.07719.13
5.4.200.0030.06319.24
5.4.190.0030.07719.07
5.4.180.0070.07319.12
5.4.170.0030.06319.09
5.4.160.0100.06018.91
5.4.150.0000.07019.07
5.4.140.0030.07716.31
5.4.130.0070.07716.16
5.4.120.0000.06716.35
5.4.110.0130.06316.41
5.4.100.0030.06016.38
5.4.90.0030.06716.38
5.4.80.0070.06716.44
5.4.70.0070.06316.29
5.4.60.0070.06716.40
5.4.50.0070.04016.34
5.4.40.0030.03716.03
5.4.30.0000.03716.43
5.4.20.0000.06716.43
5.4.10.0070.07016.50
5.4.00.0070.06715.80
5.3.290.0130.06014.69
5.3.280.0030.07314.68
5.3.270.0030.07714.65
5.3.260.0000.08314.45
5.3.250.0030.08014.58
5.3.240.0070.06014.46
5.3.230.0070.07314.55
5.3.220.0030.06314.47
5.3.210.0130.07014.63
5.3.200.0100.07314.42
5.3.190.0030.05314.41
5.3.180.0000.07714.50
5.3.170.0100.06314.49
5.3.160.0070.06714.46
5.3.150.0100.04714.41
5.3.140.0030.04014.39
5.3.130.0000.05014.38
5.3.120.0070.04714.50
5.3.110.0170.05314.41
5.3.100.0000.07013.88
5.3.90.0070.07013.88
5.3.80.0000.06014.04
5.3.70.0030.06313.89
5.3.60.0070.07313.80
5.3.50.0100.06013.85
5.3.40.0070.06013.97
5.3.30.0030.07313.77
5.3.20.0070.06713.53
5.3.10.0000.07713.68
5.3.00.0000.05313.48
5.2.170.0030.05312.20
5.2.160.0070.06012.20
5.2.150.0070.05712.20
5.2.140.0000.03712.20
5.2.130.0000.05312.20
5.2.120.0030.06312.20
5.2.110.0000.03712.20
5.2.100.0070.04312.20
5.2.90.0100.03012.20
5.2.80.0030.06312.20
5.2.70.0030.05712.20
5.2.60.0000.03312.23
5.2.50.0030.06712.25
5.2.40.0100.04312.26
5.2.30.0030.06012.29
5.2.20.0030.06312.30
5.2.10.0030.05712.33
5.2.00.0070.05312.33
5.1.60.0000.05712.33
5.1.50.0000.05312.33
5.1.40.0030.04712.33
5.1.30.0030.05312.33
5.1.20.0030.03712.33
5.1.10.0000.04012.33
5.1.00.0030.03312.33
5.0.50.0030.04712.33
5.0.40.0030.04712.33
5.0.30.0000.07012.33
5.0.20.0030.03312.33
5.0.10.0070.03312.33
5.0.00.0030.06012.33
4.4.90.0000.02712.22
4.4.80.0000.03712.24
4.4.70.0030.03012.31
4.4.60.0000.03012.33
4.4.50.0000.03712.33
4.4.40.0000.05012.33
4.4.30.0030.03012.33
4.4.20.0000.03312.33
4.4.10.0000.02012.33
4.4.00.0030.05312.33
4.3.110.0000.03712.33
4.3.100.0000.03012.33
4.3.90.0000.03012.33
4.3.80.0000.05012.33
4.3.70.0000.02312.33
4.3.60.0000.03712.33
4.3.50.0000.03712.33
4.3.40.0030.05012.33
4.3.30.0070.02712.33
4.3.20.0030.03012.33
4.3.10.0000.03712.33
4.3.00.0030.03312.33

preferences:
44.58 ms | 401 KiB | 5 Q