3v4l.org

run code in 300+ PHP versions simultaneously
<?php $right = [ [ 'FirstName' => 'Pim', 'Address' => 'Finland', 'LastName' => 'Svensson', 'ID' => 3 ], [ 'FirstName' => 'Emil', 'Address' => 'Sweden', 'LastName' => 'Malm', 'ID' => 5 ] ]; $left = array_flip(['ID', 'FirstName', 'LastName', 'Address']); array_multisort( array_map( fn($k) => $left[$k], array_keys($right[0] ?? []) ), ...$right ); var_export($right);

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.00.0100.01119.97
8.4.150.0020.00014.05
8.4.140.0120.00817.70
8.4.130.0070.01318.87
8.4.120.0110.00920.35
8.4.110.0050.00618.86
8.4.100.0120.00818.63
8.4.90.0080.01020.64
8.4.80.0050.00420.43
8.4.70.0040.00418.88
8.4.60.0040.00420.83
8.4.50.0100.01019.66
8.4.40.0440.00617.30
8.4.30.0390.00317.72
8.4.20.0360.01317.13
8.4.10.0430.00317.36
8.3.280.0130.00718.41
8.3.270.0140.00516.54
8.3.260.0050.00816.46
8.3.250.0080.01017.36
8.3.240.0110.00716.54
8.3.230.0140.00516.56
8.3.220.0110.00718.94
8.3.210.0130.00618.53
8.3.200.0030.00516.62
8.3.190.0110.00416.59
8.3.180.0090.01018.51
8.3.170.0110.01116.50
8.3.160.0400.00416.05
8.3.150.0390.00616.70
8.3.140.0300.01516.77
8.3.130.0280.01416.40
8.3.120.0340.00616.54
8.3.110.0340.00616.61
8.3.100.0390.01016.23
8.3.90.0390.00716.23
8.3.80.0440.00716.72
8.3.70.0380.00816.52
8.3.60.0320.00916.62
8.3.50.0310.01416.25
8.3.40.0320.00617.46
8.3.30.0300.00717.27
8.3.20.0320.00617.34
8.3.10.0250.00317.60
8.3.00.0090.00517.25
8.2.290.0100.01120.80
8.2.280.0080.01118.77
8.2.270.0280.00816.43
8.2.260.0340.00616.60
8.2.250.0240.01416.50
8.2.240.0270.01216.42
8.2.230.0310.01216.07
8.2.220.0350.00716.32
8.2.210.0300.00916.68
8.2.200.0260.01316.42
8.2.190.0320.00716.57
8.2.180.0330.00516.43
8.2.170.0310.01217.68
8.2.160.0370.00317.73
8.2.150.0330.00717.46
8.2.140.0340.00617.27
8.2.130.0220.01917.55
8.2.120.0200.00317.34
8.2.110.0390.00417.63
8.2.100.0290.01117.33
8.2.90.0490.00817.42
8.2.80.0330.00617.43
8.2.70.0340.00417.41
8.2.60.0330.00717.47
8.2.50.0330.00617.61
8.2.40.0260.01017.34
8.2.30.0240.01417.64
8.2.20.0260.01117.55
8.2.10.0370.00017.21
8.2.00.0260.01017.43
8.1.320.0120.00616.13

preferences:
29.16 ms | 403 KiB | 5 Q