3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ 0 => 'DR-876-000-3.jpg', 1 => 'DR-876-000-2.jpg', 2 => 'DR-876-000-1.jpg', 3 => 'DR-876-000.png', 4 => 'DR-876-000.jpg', 5 => 'DR-876-000-4.jpg', ]; usort ( $arr , function ($a, $b) { return strnatcmp(pathinfo($a, PATHINFO_FILENAME), pathinfo($b, PATHINFO_FILENAME)); }); var_dump($arr);

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.0120.00618.43
8.3.50.0140.00521.97
8.3.40.0140.00018.40
8.3.30.0070.00718.59
8.3.20.0030.00320.13
8.3.10.0080.00020.36
8.3.00.0070.00318.94
8.2.180.0100.01018.41
8.2.170.0040.01122.96
8.2.160.0110.00422.15
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0050.00320.94
8.2.120.0080.00026.35
8.2.110.0040.00419.21
8.2.100.0070.00418.03
8.2.90.0080.00019.17
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0000.00817.68
8.2.50.0090.00018.09
8.2.40.0000.00920.53
8.2.30.0000.00719.49
8.2.20.0000.00817.79
8.2.10.0070.00018.10
8.2.00.0040.00418.05
8.1.280.0040.01125.92
8.1.270.0130.00723.92
8.1.260.0110.00028.09
8.1.250.0040.00428.09
8.1.240.0070.00322.21
8.1.230.0110.00017.77
8.1.220.0090.00017.79
8.1.210.0040.00418.77
8.1.200.0070.00417.34
8.1.190.0040.00417.25
8.1.180.0040.00418.10
8.1.170.0070.00318.62
8.1.160.0070.00020.80
8.1.150.0050.00318.93
8.1.140.0000.00819.57
8.1.130.0000.00717.76
8.1.120.0000.00717.42
8.1.110.0040.00417.41
8.1.100.0080.00017.35
8.1.90.0000.00717.47
8.1.80.0080.00017.38
8.1.70.0030.00717.41
8.1.60.0060.00317.59
8.1.50.0050.00317.45
8.1.40.0030.00617.47
8.1.30.0080.00017.52
8.1.20.0070.00017.49
8.1.10.0000.00817.51
8.1.00.0040.00417.27
8.0.300.0040.00418.77
8.0.290.0030.00516.63
8.0.280.0000.00718.27
8.0.270.0000.00716.81
8.0.260.0000.00617.08
8.0.250.0070.00016.97
8.0.240.0040.00417.01
8.0.230.0000.00717.00
8.0.220.0080.00016.82
8.0.210.0040.00416.88
8.0.200.0040.00416.91
8.0.190.0040.00416.83
8.0.180.0070.00016.84
8.0.170.0090.00016.98
8.0.160.0000.00816.79
8.0.150.0000.00716.89
8.0.140.0050.00216.86
8.0.130.0050.00313.40
8.0.120.0000.01016.74
8.0.110.0050.00316.92
8.0.100.0040.00416.88
8.0.90.0080.00016.83
8.0.80.0030.01216.84
8.0.70.0000.00716.82
8.0.60.0050.00316.94
8.0.50.0000.00716.67
8.0.30.0090.00817.10
8.0.20.0080.01117.40
8.0.10.0040.00417.08
8.0.00.0090.01016.88
7.4.330.0000.00516.83
7.4.320.0000.00616.52
7.4.300.0000.00616.51
7.4.290.0030.00316.61
7.4.280.0040.00416.39
7.4.270.0000.00816.59
7.4.260.0060.00316.50
7.4.250.0000.00716.46
7.4.240.0030.00316.61
7.4.230.0000.00716.30
7.4.220.0120.00616.69
7.4.210.0100.00516.54
7.4.200.0080.00016.70
7.4.160.0000.01616.36
7.4.150.0110.00717.40
7.4.140.0120.00717.86
7.4.130.0050.01416.54
7.4.120.0070.01116.46
7.4.110.0070.01016.43
7.4.100.0000.01916.63
7.4.90.0150.00416.59
7.4.80.0090.00919.39
7.4.70.0150.00316.41
7.4.60.0120.00616.53
7.4.50.0130.00316.43
7.4.40.0100.00616.36
7.4.30.0120.00316.40
7.4.00.0130.00315.05
7.3.330.0000.00513.20
7.3.320.0000.00513.30
7.3.310.0030.00316.08
7.3.300.0040.00416.28
7.3.290.0030.00316.05
7.3.280.0090.00716.18
7.3.270.0090.00917.40
7.3.260.0120.00616.63
7.3.250.0110.00916.39
7.3.240.0070.01016.36
7.3.230.0070.01416.39
7.3.210.0120.00616.21
7.3.200.0100.01116.33
7.3.190.0080.00816.38
7.3.180.0090.00616.21
7.3.170.0210.00016.30
7.3.160.0060.00916.30
7.3.00.0090.00616.63
7.2.330.0060.01116.43
7.2.320.0110.01116.68
7.2.310.0130.00316.42
7.2.300.0090.00716.61
7.2.290.0070.01116.32
7.2.130.0030.00916.75
7.2.120.0040.01216.88
7.2.110.0070.01016.70
7.2.100.0110.00316.73
7.2.90.0090.00016.87
7.2.80.0090.00416.89
7.2.70.0040.01117.00
7.2.60.0050.00816.90
7.2.50.0030.01316.91
7.2.40.0060.00916.94
7.2.30.0080.00816.74
7.2.20.0100.00716.83
7.2.10.0100.00016.73
7.2.00.0050.00918.16
7.1.250.0000.01315.62
7.1.240.0000.00915.48
7.1.230.0040.01115.77
7.1.220.0030.00915.70
7.1.210.0080.00415.85
7.1.200.0050.00715.73
7.1.190.0090.00315.47
7.1.180.0000.01115.60
7.1.170.0030.00915.59
7.1.160.0070.00715.75
7.1.150.0000.01215.54
7.1.140.0090.00015.85
7.1.130.0030.00915.52
7.1.120.0080.00815.68
7.1.110.0080.00415.85
7.1.100.0050.00816.76
7.1.90.0100.00315.72
7.1.80.0090.00415.91
7.1.70.0030.01016.38
7.1.60.0050.01217.45
7.1.50.0080.00716.31
7.1.40.0060.00915.55
7.1.30.0070.00715.62
7.1.20.0030.01015.74
7.1.10.0000.01215.65
7.1.00.0050.03619.11
7.0.330.0080.00015.11
7.0.320.0040.00815.52
7.0.310.0030.00815.42
7.0.300.0000.01315.38
7.0.290.0130.00315.25
7.0.280.0070.00715.56
7.0.270.0000.00815.06
7.0.260.0060.00315.51
7.0.250.0050.00515.45
7.0.240.0000.01415.32
7.0.230.0070.00715.33
7.0.220.0000.01315.45
7.0.210.0000.01015.10
7.0.200.0270.00214.97
7.0.190.0070.00715.20
7.0.180.0030.00615.27
7.0.170.0090.00315.14
7.0.160.0030.00715.04
7.0.150.0070.01015.34
7.0.140.0000.01415.41
7.0.130.0030.01015.34
7.0.120.0070.00715.54
7.0.110.0060.00315.16
7.0.100.0030.00715.39
7.0.90.0090.00315.54
7.0.80.0030.00915.26
7.0.70.0130.00315.29
7.0.60.0100.04018.62
7.0.50.0100.03816.61
7.0.40.0030.02516.82
7.0.30.0080.03016.74
7.0.20.0150.02416.82
7.0.10.0060.04616.71
7.0.00.0090.02816.83
5.6.380.0110.00414.22
5.6.370.0000.00914.00
5.6.360.0090.00014.28
5.6.350.0000.00814.07
5.6.340.0050.00814.10
5.6.330.0040.00714.17
5.6.320.0060.00614.24
5.6.310.0060.00914.07
5.6.300.0060.00614.23
5.6.290.0070.01014.20
5.6.280.0020.03317.76
5.6.270.0030.01414.21
5.6.260.0040.00714.15
5.6.250.0050.00514.05
5.6.240.0060.00614.45
5.6.230.0070.00714.38
5.6.220.0090.00614.11
5.6.210.0050.03417.34
5.6.200.0060.03816.24
5.6.190.0050.05017.40
5.6.180.0130.03017.32
5.6.170.0100.03417.41
5.6.160.0130.04117.26
5.6.150.0100.04216.15
5.6.140.0120.03716.21
5.6.130.0100.03716.23
5.6.120.0060.02317.55
5.6.110.0080.02017.69
5.6.100.0120.04017.63
5.6.90.0050.03517.53
5.6.80.0030.02417.28
5.6.70.0060.00914.02
5.6.60.0060.01014.31
5.6.50.0000.01014.10
5.6.40.0060.00614.34
5.6.30.0030.00914.13
5.6.20.0080.00414.16
5.6.10.0040.00814.28
5.6.00.0060.00913.89
5.5.380.0030.00611.00
5.5.370.0060.00611.02
5.5.360.0070.00411.20
5.5.350.0170.04215.75
5.5.340.0080.03814.52
5.5.330.0050.02315.74
5.5.320.0280.02515.78
5.5.310.0070.03015.69
5.5.300.0020.02714.56
5.5.290.0040.02014.52
5.5.280.0080.02316.04
5.5.270.0160.02815.98
5.5.260.0070.03615.88
5.5.250.0030.05015.73
5.5.240.0060.03215.66
5.5.230.0030.00311.00
5.5.220.0090.00311.06
5.5.210.0070.00411.11
5.5.200.0060.00611.04
5.5.190.0040.00411.00
5.5.180.0070.00711.00
5.5.170.0000.01011.17
5.5.160.0070.00311.00
5.5.150.0030.00511.00
5.5.140.0000.01211.00
5.5.130.0000.01011.00
5.5.120.0030.00311.00
5.5.110.0120.00011.07
5.5.100.0040.00411.00
5.5.90.0000.00911.00
5.5.80.0110.00011.12
5.5.70.0030.00311.07
5.5.60.0050.00511.00
5.5.50.0090.00311.00
5.5.40.0040.00711.00
5.5.30.0040.00411.19
5.5.20.0040.00811.14
5.5.10.0070.00011.00
5.5.00.0050.00311.00

preferences:
55.7 ms | 401 KiB | 5 Q