3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = '[ { "profile_name": "J3S", "post_count": 9 }, { "profile_name": "John", "post_count": 3 }, { "profile_name": "sato", "post_count": 10 } ]'; $array = json_decode($data, true); array_multisort(array_column($array, 'post_count'), SORT_ASC, $array); echo json_encode($array, JSON_PRETTY_PRINT);

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.00718.55
8.3.50.0040.01118.02
8.3.40.0100.00718.70
8.3.30.0150.00018.77
8.3.20.0060.00922.17
8.3.10.0070.00523.71
8.3.00.0080.00520.62
8.2.180.0110.00418.27
8.2.170.0170.00322.96
8.2.160.0080.00620.88
8.2.150.0080.00522.54
8.2.140.0090.00523.54
8.2.130.0070.00524.27
8.2.120.0080.00520.48
8.2.110.0120.00221.72
8.2.100.0120.00419.21
8.2.90.0130.00219.42
8.2.80.0050.00619.58
8.2.70.0090.00618.94
8.2.60.0060.00818.91
8.2.50.0040.00819.22
8.2.40.0120.00319.40
8.2.30.0100.00318.85
8.2.20.0050.00719.30
8.2.10.0100.00419.09
8.2.00.0090.00518.76
8.1.280.0150.00625.92
8.1.270.0070.00623.94
8.1.260.0050.00525.16
8.1.250.0050.00726.01
8.1.240.0080.00619.77
8.1.230.0060.00821.44
8.1.220.0120.00219.26
8.1.210.0050.01119.48
8.1.200.0040.00918.82
8.1.190.0090.00318.76
8.1.180.0080.00419.13
8.1.170.0110.00219.09
8.1.160.0090.00418.83
8.1.150.0100.00418.90
8.1.140.0090.00718.85
8.1.130.0100.00519.29
8.1.120.0110.00418.46
8.1.110.0090.00518.44
8.1.100.0080.00718.49
8.1.90.0090.00418.46
8.1.80.0080.00618.67
8.1.70.0090.00618.13
8.1.60.0120.00318.24
8.1.50.0110.00518.16
8.1.40.0100.00518.23
8.1.30.0110.00518.26
8.1.20.0130.00318.54
8.1.10.0140.00318.24
8.1.00.0090.00618.23
8.0.300.0050.00519.87
8.0.290.0060.00518.18
8.0.280.0080.00718.08
8.0.270.0120.00217.69
8.0.260.0090.00418.12
8.0.250.0080.00717.34
8.0.240.0110.00317.31
8.0.230.0080.00617.67
8.0.220.0100.00217.71
8.0.210.0110.00517.21
8.0.200.0100.00717.27
8.0.190.0070.00617.64
8.0.180.0110.00317.70
8.0.170.0100.00317.74
8.0.160.0090.00417.70
8.0.150.0120.00517.22
8.0.140.0090.00517.68
8.0.130.0110.00416.36
8.0.120.0070.00717.71
8.0.110.0090.00517.69
8.0.100.0070.00817.23
8.0.90.0080.00717.61
8.0.80.0120.00617.24
8.0.70.0080.00817.70
8.0.60.0080.00617.68
8.0.50.0090.00517.70
8.0.30.0110.00617.81
8.0.20.0120.00617.77
8.0.10.0080.00517.79
8.0.00.0100.00817.69
7.4.330.0080.00416.44
7.4.320.0160.00217.07
7.4.300.0080.00717.48
7.4.290.0110.00516.99
7.4.280.0130.00217.55
7.4.270.0080.00817.52
7.4.260.0130.00517.04
7.4.250.0090.00517.49
7.4.240.0110.00417.51
7.4.230.0120.00417.47
7.4.220.0100.00517.48
7.4.210.0120.00716.84
7.4.200.0080.00617.55
7.4.190.0150.00117.93
7.4.180.0100.00617.85
7.4.160.0100.00617.04
7.4.150.0140.00317.27
7.4.140.0110.00717.85
7.4.130.0140.00317.52
7.4.120.0080.00817.50
7.4.110.0120.00317.48
7.4.100.0130.00616.95
7.4.90.0080.01017.53
7.4.80.0110.00718.27
7.4.70.0100.00717.50
7.4.60.0130.00517.01
7.4.50.0100.00817.00
7.4.40.0100.00717.49
7.4.30.0130.00417.79
7.4.20.0090.00617.86
7.4.10.0090.00617.09
7.4.00.0110.00516.28
7.3.330.0050.00816.51
7.3.320.0090.00416.58
7.3.310.0150.00016.77
7.3.300.0100.00517.45
7.3.290.0090.00517.32
7.3.280.0120.00516.64
7.3.270.0100.00617.77
7.3.260.0090.00716.80
7.3.250.0120.00417.78
7.3.240.0110.00616.89
7.3.230.0090.00717.33
7.3.220.0190.00217.04
7.3.210.0110.00617.38
7.3.200.0090.00717.42
7.3.190.0100.00617.37
7.3.180.0090.00717.38
7.3.170.0120.00417.52
7.3.160.0120.00617.44
7.3.150.0120.00417.80
7.3.140.0110.00517.68
7.3.130.0110.00717.06
7.3.120.0090.00916.96
7.3.110.0110.00617.14
7.3.100.0110.00516.99
7.3.90.0090.00717.07
7.3.80.0120.00416.87
7.3.70.0090.00517.00
7.3.60.0070.00816.93
7.3.50.0090.00517.01
7.3.40.0120.00616.60
7.3.30.0110.00516.19
7.3.20.2350.00417.10
7.3.10.0870.00717.20
7.3.00.0140.00417.16
7.2.340.0130.00317.81
7.2.330.0130.00517.44
7.2.320.0120.00517.44
7.2.310.0130.00417.02
7.2.300.0130.00616.96
7.2.290.0120.00617.56
7.2.280.0130.00417.78
7.2.270.0090.00617.80
7.2.260.0090.00717.17
7.2.250.0070.00917.06
7.2.240.0080.00817.15
7.2.230.0100.00617.06
7.2.220.0100.00517.03
7.2.210.0090.00517.05
7.2.200.0110.00517.08
7.2.190.0100.00616.62
7.2.180.0120.00716.66
7.2.170.0130.00416.59
7.2.160.0090.00916.31
7.2.150.2060.00417.30
7.2.140.0700.00717.47
7.2.130.0090.01017.41
7.2.120.0200.00717.35
7.2.110.0260.00717.38
7.2.100.0090.00717.36
7.2.90.0470.00317.45
7.2.80.0110.00517.56
7.2.70.0260.00617.33
7.2.60.0090.00617.50
7.2.50.0380.00517.43
7.2.40.0120.00717.47
7.2.30.0140.00417.45
7.2.20.0140.00317.54
7.2.10.0390.00617.53
7.2.00.0090.00917.61
7.1.330.0100.00717.18
7.1.320.0070.01017.12
7.1.310.0100.00717.17
7.1.300.0080.00817.20
7.1.290.0150.00217.14
7.1.280.0110.00717.11
7.1.270.2530.00616.68
7.1.260.0120.00416.42
7.1.250.0130.00516.55
7.1.240.0120.00717.03
7.1.230.0120.00617.18
7.1.220.0100.00617.17
7.1.210.0130.00717.03
7.1.200.0140.00517.16
7.1.190.0120.00517.14
7.1.180.0110.00717.07
7.1.170.0140.00517.18
7.1.160.0140.00517.22
7.1.150.0130.00517.18
7.1.140.0100.00617.11
7.1.130.0140.00517.07
7.1.120.0120.00517.08
7.1.110.0120.00817.03
7.1.100.0130.00617.10
7.1.90.0130.00617.07
7.1.80.0140.00417.19
7.1.70.0110.00716.96
7.1.60.0100.00717.07
7.1.50.0130.00317.18
7.1.40.0110.00517.04
7.1.30.0130.00417.08
7.1.20.0110.00717.20
7.1.10.0140.00417.05
7.1.00.0080.00717.10

preferences:
59.95 ms | 400 KiB | 5 Q