3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ "A - 1.0 - Title Page.PDF", "A - 2.2 - Enlarged Floor Plans", "A - 2.1.0 - Structural Details.PDF", "E - 1.0 - Electrical Title Page.PDF", "A - 1.2 - Floor Plan.PDF", "P - 1.0 - Plumbing Title Page2.PDF", "A - 2.1.1 - Structural Details.PDF", "C - 1.0 - Civil Title Page.PDF", "M - 1.0 - Mechanical Title Page.PDF", "ESC - 1.0 - Erosion Control Plan.PDF", "P - 1.0 - Plumbing Title Page.PDF", ]; $priorities = array_flip(['A', 'ESC', 'C', 'M', 'E', 'P']); usort($arr, function ($a, $b) use ($priorities) { [$categoryA, $versionA, $nameA] = explode(' - ', $a, 3); [$categoryB, $versionB, $nameB] = explode(' - ', $b, 3); return [$priorities[$categoryA], version_compare($versionB, $versionA), $nameA] <=> [$priorities[$categoryB], version_compare($versionA, $versionB), $nameB]; }); var_export($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.4.140.0130.00717.64
8.4.130.0100.01017.57
8.4.120.0090.01020.56
8.4.110.0110.00822.46
8.4.100.0090.01118.81
8.4.90.0140.00618.70
8.4.80.0110.00820.47
8.4.70.0130.00617.82
8.4.60.0140.00718.95
8.4.50.0060.00320.63
8.4.40.0100.00317.77
8.4.30.0130.00620.31
8.4.20.0080.00019.65
8.4.10.0060.00319.37
8.3.270.0120.00716.54
8.3.260.0090.00916.48
8.3.250.0070.00218.78
8.3.240.0070.00216.84
8.3.230.0040.00518.67
8.3.220.0050.00318.99
8.3.210.0080.01016.56
8.3.200.0140.00716.54
8.3.190.0130.00616.74
8.3.180.0110.00817.26
8.3.170.0120.00619.09
8.3.160.0030.01316.98
8.3.150.0070.00020.89
8.3.140.0110.00716.48
8.3.130.0000.00818.28
8.3.120.0100.00720.76
8.3.110.0100.00620.94
8.3.100.0040.00424.06
8.3.90.0030.00626.77
8.3.80.0060.00316.88
8.3.70.0140.00416.75
8.3.60.0120.00316.88
8.3.50.0130.00623.57
8.3.40.0110.00420.93
8.3.30.0070.00718.71
8.3.20.0070.00024.18
8.3.10.0070.00024.66
8.3.00.0040.00426.16
8.2.290.0120.00620.40
8.2.280.0070.01118.78
8.2.270.0130.00617.26
8.2.260.0050.00317.06
8.2.250.0040.00417.17
8.2.240.0120.00319.10
8.2.230.0130.00322.58
8.2.220.0150.00337.54
8.2.210.0000.00826.77
8.2.200.0110.00018.41
8.2.190.0090.00618.30
8.2.180.0110.00725.92
8.2.170.0150.00318.91
8.2.160.0030.01422.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0050.00326.16
8.2.120.0000.00826.35
8.2.110.0030.00622.01
8.2.100.0110.00017.91
8.2.90.0040.00417.75
8.2.80.0060.00318.73
8.2.70.0030.00617.63
8.2.60.0050.00317.63
8.2.50.0050.00318.05
8.2.40.0000.00919.88
8.2.30.0030.00718.17
8.2.20.0050.00318.07
8.2.10.0040.00419.23
8.2.00.0040.00419.26
8.1.330.0100.00921.87
8.1.320.0140.00616.30
8.1.310.0080.00016.69
8.1.300.0080.00018.68
8.1.290.0060.00318.88
8.1.280.0070.01325.92
8.1.270.0040.00422.19
8.1.260.0000.00726.35
8.1.250.0060.00328.09
8.1.240.0060.00322.08
8.1.230.0070.00417.89
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0000.00817.25
8.1.190.0040.00417.35
8.1.180.0030.00518.10
8.1.170.0000.00818.63
8.1.160.0040.00418.92
8.1.150.0000.00818.85
8.1.140.0000.00718.95
8.1.130.0040.00420.09
8.1.120.0030.00917.49
8.1.110.0040.00417.40
8.1.100.0070.00017.52
8.1.90.0070.00017.49
8.1.80.0050.00317.48
8.1.70.0030.00317.53
8.1.60.0060.00317.55
8.1.50.0000.00817.60
8.1.40.0040.00417.44
8.1.30.0030.00617.59
8.1.20.0040.00417.70
8.1.10.0040.00417.58
8.1.00.0070.00417.53
8.0.300.0040.00418.82
8.0.290.0070.00016.75
8.0.280.0080.00018.37
8.0.270.0030.00318.04
8.0.260.0000.00720.24
8.0.250.0040.00416.98
8.0.240.0000.00616.86
8.0.230.0030.00516.86
8.0.220.0040.00616.84
8.0.210.0040.00416.98
8.0.200.0070.00016.97
8.0.190.0100.00016.96
8.0.180.0000.00716.90
8.0.170.0000.00816.83
8.0.160.0080.00016.96
8.0.150.0040.00416.82
8.0.140.0040.00316.79
8.0.130.0000.00513.23
8.0.120.0040.00416.79
8.0.110.0070.00016.97
8.0.100.0000.00816.90
8.0.90.0000.00916.89
8.0.80.0020.01216.90
8.0.70.0040.00416.87
8.0.60.0000.01016.99
8.0.50.0000.00716.86
8.0.30.0100.00717.08
8.0.20.0130.00717.23
8.0.10.0000.00817.05
8.0.00.0100.01016.62
7.4.330.0000.00615.55
7.4.320.0000.00616.54
7.4.300.0040.00416.59
7.4.290.0040.00416.64
7.4.280.0040.00416.47
7.4.270.0000.00716.48
7.4.260.0000.00513.23
7.4.250.0000.00716.53
7.4.240.0020.00516.48
7.4.230.0000.00716.61
7.4.220.0030.00316.52
7.4.210.0050.00916.61
7.4.200.0000.00716.68
7.4.130.0120.00916.63
7.4.120.0090.01216.61
7.4.110.0130.00316.67
7.4.100.0030.01316.52
7.4.90.0140.00316.55
7.4.80.0120.00619.39
7.4.70.0170.00716.63
7.4.60.0030.01316.65
7.4.50.0090.00616.37
7.4.40.0000.01616.52
7.4.30.0120.00916.59
7.4.20.0050.01116.43
7.4.10.0170.00016.73
7.4.00.0060.01216.86
7.3.330.0000.00716.48
7.3.320.0000.00513.25
7.3.310.0040.00416.39
7.3.300.0070.00016.39
7.3.290.0100.00616.38
7.3.280.0060.00916.43
7.3.260.0060.01216.22
7.3.240.0080.00916.56
7.3.230.0100.00616.45
7.3.210.0070.01116.64
7.3.200.0000.01516.39
7.3.190.0130.00316.38
7.3.180.0130.00316.34
7.3.170.0030.01316.38
7.3.160.0080.01316.33
7.3.150.0060.00916.31
7.3.140.0130.00316.63
7.3.130.0120.00316.57
7.3.120.0110.00516.37
7.3.110.0040.01416.47
7.3.100.0060.01516.39
7.3.90.0030.01416.34
7.3.80.0060.01516.23
7.3.70.0070.01416.41
7.3.60.0180.00416.48
7.3.50.0030.01316.35
7.3.40.0100.00716.47
7.3.30.0130.00316.40
7.3.20.0180.00616.39
7.3.10.0070.01316.21
7.3.00.0090.00916.36
7.2.330.0180.00416.55
7.2.320.0090.00616.44
7.2.310.0100.00616.43
7.2.300.0060.01116.33
7.2.290.0060.01016.43
7.2.280.0040.01216.79
7.2.270.0070.01016.70
7.2.260.0140.00316.75
7.2.250.0030.01516.41
7.2.240.0110.01316.72
7.2.230.0090.00916.55
7.2.220.0120.00616.47
7.2.210.0130.00916.59
7.2.200.0100.00716.47
7.2.190.0060.01516.60
7.2.180.0060.01616.61
7.2.170.0160.00716.69
7.2.160.0030.02016.37
7.2.150.0040.01616.61
7.2.140.0100.00716.95
7.2.130.0100.01016.68
7.2.120.0090.00916.46
7.2.110.0080.00816.61
7.2.100.0090.00916.73
7.2.90.0170.00016.37
7.2.80.0030.01416.37
7.2.70.0040.01516.68
7.2.60.0220.00316.55
7.2.50.0120.00616.73
7.2.40.0140.00416.85
7.2.30.0120.00616.61
7.2.20.0100.00716.67
7.2.10.0090.01216.52
7.2.00.0350.01016.76

preferences:
139.99 ms | 403 KiB | 5 Q