3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'John', 'Brian', 'Julia', 'Adam', 'Brian', 'Jonathan', 'Amanda', 'Julia', 'Nathan' ]; $order = []; foreach ($array as $i => $v) { $lookup[$v] ??= $i; $order[] = $lookup[$v]; } array_multisort($order, $array); var_export($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.5.10.0110.00620.05
8.5.00.0140.00720.19
8.4.160.0140.00823.81
8.4.150.0020.00014.05
8.4.140.0140.01017.53
8.4.130.0040.00717.54
8.4.120.0090.01020.57
8.4.110.0080.00522.64
8.4.100.0160.00417.63
8.4.90.0090.01118.42
8.4.80.0140.00517.88
8.4.70.0080.00917.69
8.4.60.0120.01018.76
8.4.50.0120.00917.51
8.4.40.0040.01519.25
8.4.30.0060.01318.96
8.4.20.0150.00724.13
8.4.10.0070.00723.90
8.3.280.0130.00718.56
8.3.270.0140.00616.65
8.3.260.0140.00616.75
8.3.250.0120.00719.11
8.3.240.0120.00716.80
8.3.230.0090.00716.57
8.3.220.0050.00317.23
8.3.210.0040.00416.74
8.3.200.0090.00016.77
8.3.190.0060.00617.32
8.3.180.0100.00516.86
8.3.170.0130.00317.31
8.3.160.0040.01416.75
8.3.150.0160.00317.34
8.3.140.0070.00718.79
8.3.130.0050.00318.40
8.3.120.0060.00318.80
8.3.110.0040.00416.63
8.3.100.0130.00716.73
8.3.90.0040.00426.77
8.3.80.0030.00618.68
8.3.70.0070.01118.55
8.3.60.0140.00716.75
8.3.50.0100.01016.74
8.3.40.0030.01020.31
8.3.30.0120.00618.76
8.3.20.0000.00924.18
8.3.10.0070.00024.66
8.3.00.0070.00026.16
8.2.290.0060.00220.42
8.2.280.0090.01018.29
8.2.270.0080.01117.27
8.2.260.0080.00020.04
8.2.250.0090.00918.17
8.2.240.0030.00618.67
8.2.230.0090.00920.94
8.2.220.0040.00424.06
8.2.210.0070.00726.77
8.2.200.0060.00316.63
8.2.190.0070.00718.54
8.2.180.0150.00017.00
8.2.170.0110.00418.91
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0050.00226.16
8.2.120.0040.00420.62
8.2.110.0000.01022.18
8.2.100.0090.00318.03
8.2.90.0040.00417.63
8.2.80.0050.00318.78
8.2.70.0030.00617.63
8.2.60.0080.00017.38
8.2.50.0000.00917.55
8.2.40.0080.00017.63
8.2.30.0070.00017.77
8.2.20.0000.00719.23
8.2.10.0040.00418.17
8.2.00.0100.00717.73
8.1.330.0100.00821.85
8.1.320.0080.01216.08
8.1.310.0120.00616.73
8.1.300.0030.00516.19
8.1.290.0050.00530.84
8.1.280.0040.01125.92
8.1.270.0080.00024.66
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0100.00023.92
8.1.230.0030.00917.82
8.1.220.0040.00417.79
8.1.210.0090.00018.77
8.1.200.0060.00317.35
8.1.190.0040.00417.36
8.1.180.0000.00818.10
8.1.170.0050.00217.62
8.1.160.0060.00318.82
8.1.150.0000.00818.65
8.1.140.0030.00517.32
8.1.130.0100.00817.41
8.1.120.0100.00717.51
8.1.110.0070.00417.53
8.1.100.0090.00417.56
8.1.90.0100.00717.53
8.1.80.0040.01317.44
8.1.70.0120.00617.57
8.1.60.0190.00017.56
8.1.50.0150.00417.59
8.1.40.0140.00417.56
8.1.30.0170.00317.66
8.1.20.0040.01617.57
8.1.10.0200.00017.60
8.1.00.0170.00317.55
8.0.300.0060.00319.75
8.0.290.0040.00416.88
8.0.280.0080.00017.95
8.0.270.0050.00218.08
8.0.260.0170.00017.41
8.0.250.0130.00317.41
8.0.240.0130.00317.41
8.0.230.0070.00717.41
8.0.220.0090.00317.41
8.0.210.0050.01017.41
8.0.200.0150.00017.41
8.0.190.0150.00017.41
8.0.180.0050.01017.41
8.0.170.0130.00317.41
8.0.160.0050.01017.41
8.0.150.0060.01017.41
8.0.140.0150.00017.41
8.0.130.0160.00017.41
8.0.120.0120.00417.41
8.0.110.0110.00417.41
8.0.100.0090.00917.41
8.0.90.0180.00517.41
8.0.80.0110.00517.41
8.0.70.0150.00017.41
8.0.60.0150.00017.41
8.0.50.0100.00717.41
8.0.30.0150.00017.41
8.0.20.0150.00017.41
8.0.10.0100.00617.41
7.3.00.0060.00717.89
7.2.340.0070.00417.55

preferences:
118.1 ms | 403 KiB | 5 Q