3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'team1' => [ 'points' => 10, 'players' => [], ], 'team2' => [ 'points' => 23, 'players' => [] ] ]; uasort($array, fn($a, $b) => $b['points'] <=> $a['points']); 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.10.0100.00820.04
8.5.00.0130.01020.16
8.4.150.0020.00014.05
8.4.140.0160.00517.32
8.4.130.0070.00418.75
8.4.120.0090.01020.36
8.4.110.0140.00722.50
8.4.100.0030.00619.13
8.4.90.0100.01118.71
8.4.80.0100.01017.61
8.4.70.0070.01217.68
8.4.60.0120.00818.98
8.4.50.0130.00817.77
8.4.40.0100.00620.58
8.4.30.0050.00320.50
8.4.20.0160.00319.77
8.4.10.0030.00623.88
8.3.280.0110.00818.41
8.3.270.0130.00616.65
8.3.260.0120.00716.78
8.3.250.0110.00718.84
8.3.240.0120.00816.89
8.3.230.0100.00816.64
8.3.220.0110.00417.25
8.3.210.0080.00816.85
8.3.200.0050.00416.50
8.3.190.0100.01016.99
8.3.180.0140.00516.74
8.3.170.0120.00619.09
8.3.160.0120.00617.08
8.3.150.0040.00417.30
8.3.140.0070.00718.37
8.3.130.0030.00616.54
8.3.120.0090.00020.83
8.3.110.0070.00316.48
8.3.100.0030.00616.62
8.3.90.0100.00726.77
8.3.80.0090.00018.31
8.3.70.0120.00318.43
8.3.60.0110.00416.38
8.3.50.0150.00016.55
8.3.40.0100.00320.03
8.3.30.0030.01018.72
8.3.20.0040.00424.18
8.3.10.0020.00524.66
8.3.00.0030.00526.16
8.2.290.0070.00420.25
8.2.280.0060.00218.36
8.2.270.0110.00717.00
8.2.260.0000.00916.66
8.2.250.0080.00018.55
8.2.240.0080.00018.94
8.2.230.0110.00020.94
8.2.220.0030.00637.54
8.2.210.0040.00426.77
8.2.200.0060.00316.38
8.2.190.0060.00916.69
8.2.180.0150.00416.50
8.2.170.0110.01119.02
8.2.160.0140.00022.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00426.16
8.2.110.0090.00019.27
8.2.100.0000.01217.84
8.2.90.0050.00319.23
8.2.80.0080.00517.97
8.2.70.0090.00017.50
8.2.60.0000.00918.04
8.2.50.0040.00418.10
8.2.40.0040.00420.36
8.2.30.0070.01018.58
8.2.20.0160.00018.63
8.2.10.0120.00618.64
8.2.00.0120.00618.48
8.1.330.0110.00621.83
8.1.320.0090.01116.33
8.1.310.0040.00416.61
8.1.300.0030.00618.63
8.1.290.0030.00630.84
8.1.280.0070.00725.92
8.1.270.0060.00323.77
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0080.00023.98
8.1.230.0040.00717.76
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0090.00017.23
8.1.180.0030.00618.10
8.1.170.0130.00318.13
8.1.160.0100.00718.31
8.1.150.0090.00818.43
8.1.140.0080.00818.36
8.1.130.0140.00318.40
8.1.120.0130.00418.33
8.1.110.0120.00418.66
8.1.100.0180.00018.38
8.1.90.0150.00418.25
8.1.80.0170.00318.40
8.1.70.0040.01218.41
8.1.60.0190.00018.53
8.1.50.0110.00718.53
8.1.40.0110.00718.44
8.1.30.0170.00018.43
8.1.20.0100.01018.40
8.1.10.0070.01118.40
8.1.00.0140.00418.26
8.0.300.0060.00318.77
8.0.290.0040.00416.58
8.0.280.0110.00617.91
8.0.270.0120.00517.62
8.0.260.0150.00317.91
8.0.250.0110.00617.71
8.0.240.0110.00517.76
8.0.230.0110.00617.71
8.0.220.0180.00017.62
8.0.210.0130.00417.66
8.0.200.0130.00317.88
8.0.190.0100.00717.93
8.0.180.0100.00817.64
8.0.170.0170.00017.84
8.0.160.0150.00417.89
8.0.150.0170.00017.62
8.0.140.0100.00717.75
8.0.130.0140.00417.79
8.0.120.0180.00017.78
8.0.110.0130.00417.62
8.0.100.0100.00717.62
8.0.90.0130.00317.79
8.0.80.0180.00017.62
8.0.70.0050.01117.62
8.0.60.0110.00517.69
8.0.50.0130.00317.71
8.0.30.0100.00617.66
8.0.20.0090.00617.70
8.0.10.0160.00017.79

preferences:
116.49 ms | 403 KiB | 5 Q