3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 1 => ['id' => 1, 'sort' => 1], 3 => ['id' => 3, 'sort' => 3], 2 => ['id' => 2, 'sort' => 2], ]; uasort($array, fn($a, $b) => $a['sort'] <=> $b['sort']); 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.30.0110.00719.72
8.5.20.0130.00420.10
8.5.10.0120.00618.52
8.5.00.0100.01120.04
8.4.180.0130.00919.68
8.4.170.0150.00720.55
8.4.160.0110.01223.77
8.4.150.0080.00516.83
8.4.140.0140.00817.32
8.4.130.0130.00818.67
8.4.120.0100.01123.84
8.4.110.0120.00819.55
8.4.100.0140.00618.65
8.4.90.0130.00820.39
8.4.80.0060.00320.39
8.4.70.0060.00518.02
8.4.60.0090.01018.97
8.4.50.0100.01118.54
8.4.40.0170.00317.83
8.4.30.0090.01018.91
8.4.20.0100.01021.27
8.4.10.0030.00619.38
8.3.300.0110.01020.80
8.3.290.0090.01220.60
8.3.280.0110.01018.48
8.3.270.0130.00616.41
8.3.260.0070.00216.68
8.3.250.0130.00618.64
8.3.240.0090.00817.14
8.3.230.0130.00716.66
8.3.220.0040.00418.95
8.3.210.0060.00216.49
8.3.200.0060.00316.50
8.3.190.0040.00519.07
8.3.180.0070.00817.14
8.3.170.0120.00620.72
8.3.160.0070.01117.29
8.3.150.0040.00417.20
8.3.140.0110.00416.57
8.3.130.0030.00916.40
8.3.120.0150.00420.68
8.3.110.0080.00020.94
8.3.100.0080.00024.06
8.3.90.0090.00926.77
8.3.80.0040.00417.97
8.3.70.0210.01217.81
8.3.60.0250.00717.81
8.3.50.0140.00017.81
8.3.40.0240.00317.81
8.3.30.0180.00617.81
8.3.20.0190.00917.81
8.3.10.0230.00417.81
8.3.00.0240.00417.81
8.2.300.0100.00924.05
8.2.290.0050.01320.68
8.2.280.0130.00718.46
8.2.270.0140.00416.95
8.2.260.0080.00016.75
8.2.250.0110.01116.83
8.2.240.0060.00317.27
8.2.230.0030.00622.58
8.2.220.0100.00037.54
8.2.210.0000.00826.77
8.2.200.0030.00616.63
8.2.190.0200.00517.81
8.2.180.0180.00917.81
8.2.170.0180.00917.81
8.2.160.0220.00517.81
8.2.150.0250.00417.81
8.2.140.0290.00017.81
8.2.130.0270.00717.81
8.2.120.0260.01117.81
8.2.110.0340.01117.81
8.2.100.0350.00917.81
8.2.90.0340.00917.81
8.2.80.0280.00317.81
8.2.70.0230.00417.81
8.2.60.0240.00317.81
8.2.50.0210.00317.81
8.2.40.0220.00317.81
8.2.30.0220.00417.81
8.2.20.0250.00017.81
8.2.10.0220.00417.81
8.2.00.0270.00317.81
8.1.340.0090.01019.70
8.1.330.0100.00822.00
8.1.320.0120.00716.05
8.1.310.0040.00418.48
8.1.300.0040.00417.75
8.1.290.0090.00030.84
8.1.280.0220.00417.81
8.1.270.0250.00417.81
8.1.260.0220.00717.81
8.1.250.0230.00517.81
8.1.240.0250.00017.81
8.1.230.0210.00417.81
8.1.220.0210.00317.81
8.1.210.0170.00617.81
8.1.200.0260.00017.81
8.1.190.0140.01117.81
8.1.180.0200.00017.81
8.1.170.0280.00017.81
8.1.160.0220.00817.81
8.1.150.0150.01117.81
8.1.140.0230.00617.81
8.1.130.0320.00317.81
8.1.120.0280.01217.81
8.1.110.0300.01117.81
8.1.100.0360.01017.81
8.1.90.0390.00317.81
8.1.80.0260.01117.81
8.1.70.0250.00317.81
8.1.60.0240.00317.81
8.1.50.0150.00817.81
8.1.40.0170.00417.81
8.1.30.0200.00717.81
8.1.20.0260.00017.81
8.1.10.0190.01017.81
8.1.00.0240.00017.81

preferences:
57.91 ms | 994 KiB | 5 Q