3v4l.org

run code in 300+ PHP versions simultaneously
<?php $users = json_decode('[{"first_name":"Rebecca"},{"first_name":"amy"},{"first_name":"Amy"},{"first_name":"stacy"}]', true); $firstNames = array_column($users, 'first_name'); array_multisort(array_map('strtolower', $firstNames), $firstNames, $users); var_export($users);

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.4.120.0070.00222.45
8.4.110.0130.00722.44
8.4.100.0140.00817.76
8.4.90.0120.00917.70
8.4.80.0030.00517.84
8.4.70.0070.00217.67
8.4.60.0090.01118.37
8.4.50.0140.00717.56
8.4.40.0180.00318.53
8.4.30.0120.00620.70
8.4.20.0080.01220.73
8.4.10.0060.00319.61
8.3.250.0040.00418.82
8.3.240.0030.00516.16
8.3.230.0110.01016.75
8.3.220.0120.00517.16
8.3.210.0050.01216.66
8.3.200.0050.00716.63
8.3.190.0080.01217.10
8.3.180.0110.00616.45
8.3.170.0070.01120.71
8.3.160.0030.00716.84
8.3.150.0090.00917.36
8.3.140.0070.00716.32
8.3.130.0000.00818.32
8.3.120.0110.00018.77
8.3.110.0050.00520.94
8.3.100.0030.00624.06
8.3.90.0080.00026.77
8.3.80.0000.00917.97
8.3.70.0040.01418.18
8.3.60.0410.01325.92
8.3.50.0150.00425.92
8.3.40.0310.00425.92
8.3.30.0230.00825.92
8.3.20.0300.00725.92
8.3.10.0230.01025.92
8.3.00.0390.00425.92
8.2.290.0120.00720.54
8.2.280.0160.00418.46
8.2.270.0080.00017.23
8.2.260.0110.01118.16
8.2.250.0060.01316.25
8.2.240.0040.00417.04
8.2.230.0000.00822.58
8.2.220.0160.00337.54
8.2.210.0090.00026.77
8.2.200.0090.00016.25
8.2.190.0040.01116.58
8.2.180.0230.01025.92
8.2.170.0350.00025.92
8.2.160.0450.00325.92
8.2.150.0350.01325.92
8.2.140.0380.00725.92
8.2.130.0340.00325.92
8.2.120.0360.01025.92
8.2.110.0170.01725.92
8.2.100.0340.00925.92
8.2.90.0380.00625.92
8.2.80.0350.01925.92
8.2.70.0330.01325.92
8.2.60.0220.01325.92
8.2.50.0310.00325.92
8.2.40.0290.00425.92
8.2.30.0370.00625.92
8.2.20.0290.00725.92
8.2.10.0230.00825.92
8.2.00.0410.00325.92
8.1.330.0090.00916.53
8.1.320.0050.00516.14
8.1.310.0030.00521.93
8.1.300.0040.00716.13
8.1.290.0040.00730.84
8.1.280.0370.00825.92
8.1.270.0460.00725.92
8.1.260.0400.01725.92
8.1.250.0300.00725.92
8.1.240.0320.00425.92
8.1.230.0210.01725.92
8.1.220.0320.01125.92
8.1.210.0250.01125.92
8.1.200.0300.00725.92
8.1.190.0280.00925.92
8.1.180.0310.01025.92
8.1.170.0290.00825.92
8.1.160.0280.00925.92
8.1.150.0340.00825.92
8.1.140.0350.01025.92
8.1.130.0400.00725.92
8.1.120.0240.01225.92
8.1.110.0240.01225.92
8.1.100.0310.00625.92
8.1.90.0420.00725.92
8.1.80.0390.00725.92
8.1.70.0360.00625.92
8.1.60.0290.01025.92
8.1.50.0290.01125.92
8.1.40.0320.01125.92
8.1.30.0320.01125.92
8.1.20.0380.00725.92
8.1.10.0330.01325.92
8.1.00.0400.00625.92

preferences:
47.61 ms | 403 KiB | 5 Q