3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ (object) ['ID' => 1, 'name' => 'Mary Jane', 'count' => '420'], (object) ['ID' => 2, 'name' => 'Johnny', 'count' => '23420'], (object) ['ID' => 3, 'name' => 'Kathy', 'count' => '4354'], ]; $property = 'count'; usort($array, fn($a,$b) => $a->$property <=> $b->$property); 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.3.130.0040.00418.71
8.3.120.0060.00318.82
8.3.110.0030.00620.94
8.3.100.0000.00818.34
8.3.90.0150.00426.77
8.3.80.0040.00418.31
8.3.70.0110.01116.75
8.3.60.0130.00318.31
8.3.50.0100.01018.52
8.3.40.0100.01018.84
8.3.30.0070.00718.66
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0000.00726.16
8.2.250.0060.01318.63
8.2.240.0090.00617.48
8.2.230.0070.01122.58
8.2.220.0070.01437.54
8.2.210.0150.00326.77
8.2.200.0050.00518.30
8.2.190.0100.01016.88
8.2.180.0110.01125.92
8.2.170.0070.00722.96
8.2.160.0110.00422.96
8.2.150.0150.00425.66
8.2.140.0050.00324.66
8.2.130.0050.00226.16
8.2.120.0070.00026.16
8.2.110.0030.00622.27
8.2.100.0080.00317.91
8.2.90.0050.00517.78
8.2.80.0000.00817.97
8.2.70.0060.00318.03
8.2.60.0030.00518.09
8.2.50.0060.00318.10
8.2.40.0040.00419.38
8.2.30.0040.00418.08
8.2.20.0070.00020.39
8.2.10.0040.00418.18
8.2.00.0020.00618.48
8.1.300.0060.00317.78
8.1.290.0040.00830.84
8.1.280.0090.00625.92
8.1.270.0080.00023.99
8.1.260.0030.00626.35
8.1.250.0080.00028.09
8.1.240.0060.00322.20
8.1.230.0070.00420.97
8.1.220.0040.00417.79
8.1.210.0000.00918.77
8.1.200.0060.00317.35
8.1.190.0030.00617.13
8.1.180.0000.00818.10
8.1.170.0000.00818.61
8.1.160.0040.00418.91
8.1.150.0040.00418.66
8.1.140.0030.00617.39
8.1.130.0090.00418.07
8.1.120.0090.00417.45
8.1.110.0090.00517.45
8.1.100.0090.00417.45
8.1.90.0110.00317.48
8.1.80.0050.00717.46
8.1.70.0100.00617.36
8.1.60.0160.00317.58
8.1.50.0120.00717.44
8.1.40.0140.00417.54
8.1.30.0150.00417.61
8.1.20.0130.00617.62
8.1.10.0130.00417.49
8.1.00.0110.00817.43
8.0.300.0060.00319.58
8.0.290.0050.00316.75
8.0.280.0000.00718.48
8.0.270.0040.00416.95
8.0.260.0080.00317.63
8.0.250.0100.00216.92
8.0.240.0060.00516.94
8.0.230.0050.00516.94
8.0.220.0040.00716.90
8.0.210.0080.00416.80
8.0.200.0100.00616.91
8.0.190.0110.00516.88
8.0.180.0110.00416.89
8.0.170.0090.00616.90
8.0.160.0120.00316.88
8.0.150.0130.00216.82
8.0.140.0110.00416.85
8.0.130.0130.00216.86
8.0.120.0090.00416.76
8.0.110.0090.00516.87
8.0.100.0080.00616.83
8.0.90.0090.00516.82
8.0.80.0100.00516.77
8.0.70.0080.00616.80
8.0.60.0100.00316.87
8.0.50.0090.00416.81
8.0.30.0080.00616.87
8.0.20.0090.00516.92
8.0.10.0100.00416.95
7.4.330.0070.00415.21
7.4.320.0110.00216.49
7.4.300.0080.00616.46
7.4.290.0100.00316.36
7.4.280.0110.00216.39
7.4.270.0090.00516.38
7.4.260.0070.00616.50
7.4.250.0080.00516.42
7.4.240.0070.00516.34
7.4.230.0100.00416.43
7.4.220.0080.00516.41
7.4.210.0050.00616.36
7.4.200.0070.00516.47
7.4.190.0060.00616.46
7.4.180.0060.00516.47
7.4.160.0090.00316.37
7.4.150.0050.00616.38
7.4.140.0080.00416.30
7.4.130.0100.00216.35
7.4.120.0050.00716.34
7.4.110.0090.00316.27
7.4.100.0070.00516.33
7.4.90.0100.00216.21
7.4.80.0070.00516.34
7.4.70.0030.00716.36
7.4.60.0090.00116.25
7.4.50.0080.00216.25
7.4.40.0070.00416.19
7.4.30.0060.00516.36
7.4.20.0060.00416.31
7.4.10.0070.00416.30
7.4.00.0070.00516.29
7.3.330.0180.01016.69
7.2.10.0120.00116.39
7.1.10.0080.00316.30
7.0.330.0170.00623.26
5.5.380.0260.00822.96

preferences:
26.93 ms | 403 KiB | 5 Q