3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ['avi', 'beni', 'Avi', 'Beni']; sort($array); sort($array, SORT_STRING | SORT_FLAG_CASE); 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.0080.00918.25
8.5.20.0100.01019.41
8.5.10.0100.00916.54
8.5.00.0140.00719.96
8.4.180.0060.00519.68
8.4.170.0130.01020.54
8.4.160.0140.00820.66
8.4.150.0060.00716.78
8.4.140.0140.00617.39
8.4.130.0060.00317.49
8.4.120.0120.00922.18
8.4.110.0070.00120.63
8.4.100.0040.00418.79
8.4.90.0140.00620.52
8.4.80.0060.00218.70
8.4.70.0040.00418.71
8.4.60.0100.00118.35
8.4.50.0150.00617.62
8.4.40.0140.00317.52
8.4.30.0200.01617.31
8.4.20.0160.00517.32
8.4.10.0200.00317.30
8.3.300.0110.00820.53
8.3.290.0070.00320.69
8.3.280.0070.00416.17
8.3.270.0120.01016.67
8.3.260.0080.00816.57
8.3.250.0090.00917.07
8.3.240.0130.00716.73
8.3.230.0120.00616.52
8.3.220.0100.00819.03
8.3.210.0140.00718.22
8.3.200.0070.00216.50
8.3.190.0110.00817.12
8.3.180.0070.01216.84
8.3.170.0160.00816.67
8.3.160.0170.00316.57
8.3.150.0120.00816.22
8.3.140.0120.00916.66
8.3.130.0180.00016.66
8.3.120.0110.00716.36
8.3.110.0150.00316.52
8.3.100.0160.00616.67
8.3.90.0190.00016.33
8.3.80.0140.00716.63
8.3.70.0080.01116.52
8.3.60.0170.00516.37
8.3.50.0170.00316.24
8.3.40.0100.01017.07
8.3.30.0120.00316.93
8.3.20.0100.00516.96
8.3.10.0170.00017.43
8.3.00.0140.00317.28
8.2.300.0130.00820.19
8.2.290.0060.00220.20
8.2.280.0050.00318.58
8.2.270.0140.00316.25
8.2.260.0140.00316.66
8.2.250.0160.00316.52
8.2.240.0130.00316.72
8.2.230.0160.00016.56
8.2.220.0050.01116.66
8.2.210.0160.00016.22
8.2.200.0100.00616.43
8.2.190.0140.00316.26
8.2.180.0170.00016.24
8.2.170.0180.00017.51
8.2.160.0140.00417.57
8.2.150.0130.00317.43
8.2.140.0160.00017.26
8.2.130.0120.00617.28
8.2.120.0110.00717.40
8.2.110.0190.00017.30
8.2.100.0120.00417.21
8.2.90.0260.00417.29
8.2.80.0110.00717.14
8.2.70.0150.00617.17
8.2.60.0130.00417.17
8.2.50.0240.00916.85
8.2.40.0230.00817.31
8.2.30.0210.01217.08
8.2.20.0160.00017.36
8.2.10.0230.00317.02
8.2.00.0140.00717.09
8.1.340.0110.00919.91
8.1.320.0140.00616.03

preferences:
40.99 ms | 842 KiB | 5 Q