3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array( 'cover.xhtml', 'title.xhtml', 'copyright.xhtml', 'dedication.xhtml', 'toc_brief.xhtml', 'toc.xhtml', 'ch02_1.xhtml', 'ch02_2.xhtml', 'ch02_3.xhtml', 'ch02_4.xhtml', 'ch02_5.xhtml', 'ch02_6.xhtml', 'ch02_7.xhtml', 'ch02_8.xhtml', 'ch02_9.xhtml', 'ch02_10.xhtml' ); $array2 = array( '', 'title.xhtml', 'copyright.xhtml', 'dedication.xhtml', 'ch02_2.xhtml', 'ch02_2#454.xhtml', 'ch02_4.xhtml', 'ch02_1.xhtml', 'ch02_11.xhtml', 'ch02_12.xhtml', '' ); $customOrder = array_flip([ 'cover', 'title', 'copyright', 'dedication', 'toc_brief', 'toc', 'ch' ]); $uniqueFiltered = array_unique(array_filter(array_merge($array1, $array2))); array_multisort( array_map(fn($v) => $customOrder[strtok($v, '.012345789')], $uniqueFiltered), str_replace('#', '_', $uniqueFiltered), SORT_NATURAL, $uniqueFiltered ); var_export($uniqueFiltered);

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.0110.00917.67
8.4.130.0100.01018.54
8.4.120.0110.00920.74
8.4.110.0060.00918.72
8.4.100.0130.00717.92
8.4.90.0140.00818.71
8.4.80.0080.01217.78
8.4.70.0120.00517.99
8.4.60.0100.01018.61
8.4.50.0140.00619.40
8.4.40.0100.00719.54
8.4.30.0080.01118.48
8.4.20.0060.01618.07
8.4.10.0040.00421.99
8.3.270.0120.00716.64
8.3.260.0050.00516.64
8.3.250.0080.01018.93
8.3.240.0110.00816.73
8.3.230.0080.01016.74
8.3.220.0040.00417.37
8.3.210.0040.00316.50
8.3.200.0060.00216.57
8.3.190.0100.00416.95
8.3.180.0120.00616.55
8.3.170.0080.00018.99
8.3.160.0060.00316.44
8.3.150.0110.00720.56
8.3.140.0040.01416.53
8.3.130.0050.00318.59
8.3.120.0080.00020.71
8.3.110.0040.01220.94
8.3.100.0040.00424.06
8.3.90.0070.00026.77
8.3.80.0040.00816.38
8.3.70.0120.00916.58
8.3.60.0060.01516.38
8.3.50.0100.01018.43
8.3.40.0130.00320.36
8.3.30.0120.00318.70
8.3.20.0070.00024.18
8.3.10.0090.00024.66
8.3.00.0000.00826.16
8.2.290.0140.00620.71
8.2.280.0060.00618.82
8.2.270.0160.00316.93
8.2.260.0060.00820.62
8.2.250.0040.00416.79
8.2.240.0040.01119.23
8.2.230.0020.00522.58
8.2.220.0030.00637.54
8.2.210.0000.00826.77
8.2.200.0100.00018.41
8.2.190.0150.00416.75
8.2.180.0120.00325.92
8.2.170.0130.00322.96
8.2.160.0160.00322.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.36
8.2.110.0180.00321.07
8.2.100.0090.00317.91
8.2.90.0080.00017.88
8.2.80.0030.00618.77
8.2.70.0040.00417.63
8.2.60.0070.00317.63
8.2.50.0040.00418.04
8.2.40.0080.00018.22
8.2.30.0070.00018.21
8.2.20.0030.00619.30
8.2.10.0000.00818.20
8.2.00.0040.00419.20
8.1.330.0090.00916.16
8.1.320.0150.00416.23
8.1.310.0110.00716.41
8.1.300.0040.01220.14
8.1.290.0080.00030.84
8.1.280.0100.01625.92
8.1.270.0000.00724.66
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0030.01423.96
8.1.230.0120.00022.64
8.1.220.0040.00418.73
8.1.210.0050.00318.77
8.1.200.0030.00617.48
8.1.190.0000.00817.25
8.1.180.0040.00418.10
8.1.170.0000.00717.62
8.1.160.0050.00218.95
8.1.150.0050.00218.53
8.1.140.0040.00417.38
8.1.130.0070.00019.07
8.1.120.0070.00017.49
8.1.110.0050.00317.38
8.1.100.0130.00317.41
8.1.90.0110.00417.30
8.1.80.0050.00817.35
8.1.70.0120.00017.40
8.1.60.0070.00717.46
8.1.50.0000.01317.44
8.1.40.0110.00417.43
8.1.30.0070.00717.49
8.1.20.0170.00017.59
8.1.10.0170.00017.53
8.1.00.0140.00317.49
8.0.300.0000.00818.77
8.0.290.0060.00316.63
8.0.280.0040.00418.53
8.0.270.0000.00716.75
8.0.260.0040.00418.43
8.0.250.0070.00017.03
8.0.240.0000.00716.94
8.0.230.0000.00816.94
8.0.220.0040.01116.69
8.0.210.0120.00316.72
8.0.200.0090.00516.92
8.0.190.0050.00916.86
8.0.180.0090.00516.73
8.0.170.0130.00216.89
8.0.160.0090.00616.84
8.0.150.0060.00916.73
8.0.140.0160.00016.82
8.0.130.0100.00516.78
8.0.120.0120.00416.77
8.0.110.0130.00316.77
8.0.100.0080.00816.76
8.0.90.0150.00216.80
8.0.80.0130.00316.90
8.0.70.0140.00016.61
8.0.60.0080.00716.73
8.0.50.0100.00516.72
8.0.30.0090.00716.68
8.0.20.0100.00517.00
8.0.10.0090.00616.83
7.4.330.0060.00015.55
7.4.320.0030.00316.56
7.4.300.0070.00016.59
7.4.290.0080.00916.49
7.4.280.0170.00016.46
7.4.270.0100.00316.56
7.4.260.0060.00916.38
7.4.250.0100.00316.42
7.4.240.0070.01016.55
7.4.230.0180.00016.54
7.4.220.0090.00316.46
7.4.210.0070.00716.41
7.4.200.0090.00616.44
7.4.190.0140.00016.56
7.4.180.0120.00316.62
7.4.160.0090.00416.36
7.4.150.0080.00416.28
7.4.140.0070.00716.35
7.4.130.0140.00016.54
7.4.120.0150.00016.41
7.4.110.0120.00216.41
7.4.100.0100.00516.55
7.4.90.0080.00816.41
7.4.80.0110.00416.55
7.4.70.0070.00716.39
7.4.60.0120.00316.37
7.4.50.0130.00016.30
7.4.40.0110.00416.31
7.4.30.0080.00616.41
7.4.20.0090.00616.31
7.4.10.0080.00516.47
7.4.00.0030.00816.48

preferences:
30.33 ms | 403 KiB | 5 Q