3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ '1-2' => 'stuff', '3-4' => 'otherstuff', '2-1' => 'morestuff', '5-6' => 'evenmorestuff', '6-5' => 'evenmorestuffagain' ]; $result = array_unique(array_map(function ($key) { $parts = explode('-', $key); sort($parts); return implode('-', $parts); }, array_keys($array))); print_r($result);

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.130.0060.00916.73
8.3.120.0040.00418.75
8.3.110.0110.00420.94
8.3.100.0120.00324.06
8.3.90.0000.00826.77
8.3.80.0030.00717.97
8.3.70.0000.01416.38
8.3.60.0110.00718.52
8.3.50.0080.01118.21
8.3.40.0110.01118.58
8.3.30.0150.00018.59
8.3.20.0040.00421.87
8.3.10.0040.00423.70
8.3.00.0000.00823.68
8.2.250.0040.00416.37
8.2.240.0000.00916.93
8.2.230.0070.00322.58
8.2.220.0060.00337.54
8.2.210.0140.00426.77
8.2.200.0030.00618.17
8.2.190.0070.00720.15
8.2.180.0140.00018.13
8.2.170.0150.00322.96
8.2.160.0100.00320.33
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0070.00019.82
8.2.120.0040.00426.16
8.2.110.0000.00922.13
8.2.100.0090.00317.78
8.2.90.0020.00517.93
8.2.80.0040.00417.97
8.2.70.0080.00017.93
8.2.60.0070.00018.16
8.2.50.0000.00818.10
8.2.40.0050.00219.30
8.2.30.0040.00419.25
8.2.20.0110.00017.93
8.2.10.0000.01020.68
8.2.00.0040.00419.38
8.1.300.0030.00618.02
8.1.290.0090.00030.84
8.1.280.0140.00425.92
8.1.270.0040.00424.66
8.1.260.0000.00726.35
8.1.250.0050.00328.09
8.1.240.0030.00622.74
8.1.230.0080.00320.93
8.1.220.0000.00817.79
8.1.210.0040.00419.04
8.1.200.0060.00317.35
8.1.190.0050.00317.23
8.1.180.0050.00318.10
8.1.170.0040.00418.66
8.1.160.0000.00718.89
8.1.150.0000.00718.66
8.1.140.0000.00722.04
8.1.130.0030.00320.20
8.1.120.0050.00217.38
8.1.110.0040.00417.34
8.1.100.0040.00417.39
8.1.90.0060.00317.45
8.1.80.0030.00317.49
8.1.70.0030.00317.49
8.1.60.0030.00617.59
8.1.50.0030.00517.52
8.1.40.0040.00417.52
8.1.30.0000.00817.54
8.1.20.0000.00717.58
8.1.10.0040.00417.49
8.1.00.0030.00517.36
8.0.300.0000.00720.03
8.0.290.0000.00816.63
8.0.280.0070.00018.40
8.0.270.0000.00717.19
8.0.260.0030.00318.30
8.0.250.0000.00616.93
8.0.240.0050.00316.90
8.0.230.0030.00316.80
8.0.220.0070.00016.83
8.0.210.0000.00716.80
8.0.200.0030.00316.86
8.0.190.0080.00016.89
8.0.180.0030.00616.81
8.0.170.0000.00916.78
8.0.160.0050.00216.88
8.0.150.0070.00016.86
8.0.140.0000.00816.89
8.0.130.0000.00513.38
8.0.120.0000.00716.73
8.0.110.0000.00716.82
8.0.100.0030.00616.93
8.0.90.0040.00416.79
8.0.80.0070.00916.84
8.0.70.0040.00416.85
8.0.60.0050.00316.77
8.0.50.0000.00716.89
8.0.30.0120.00616.84
8.0.20.0080.00817.40
8.0.10.0080.00017.08
8.0.00.0120.00516.67
7.4.330.0060.00015.55
7.4.320.0040.00416.62
7.4.300.0040.00416.59
7.4.290.0040.00416.55
7.4.280.0040.00416.54
7.4.270.0030.00316.61
7.4.260.0000.00716.61
7.4.250.0070.00016.51
7.4.240.0040.00416.57
7.4.230.0040.00416.40
7.4.220.0050.00316.45
7.4.210.0060.00916.58
7.4.200.0030.00516.35
7.4.160.0120.00616.46
7.4.140.0110.00817.86
7.4.130.0130.01016.45
7.4.120.0160.00616.46
7.4.110.0070.01016.34
7.4.100.0110.01316.46
7.4.90.0090.00916.53
7.4.80.0100.00719.39
7.4.70.0110.01016.50
7.4.60.0100.00616.36
7.4.50.0030.01316.36
7.4.40.0100.01316.38
7.4.00.0080.00614.96
7.3.330.0020.00213.19
7.3.320.0000.00513.31
7.3.310.0030.00616.14
7.3.300.0000.00716.11
7.3.290.0000.00716.20
7.3.280.0070.00716.20
7.3.260.0100.00916.33
7.3.240.0100.00716.41
7.3.230.0080.00816.20
7.3.210.0030.01316.11
7.3.200.0060.01016.46
7.3.190.0100.01316.52
7.3.180.0090.00616.52
7.3.170.0160.00616.50
7.3.160.0100.01016.32
7.3.120.0100.00617.15
7.3.110.0090.00317.15
7.3.100.0000.01817.15
7.3.90.0060.01017.15
7.3.80.0040.00417.15
7.3.70.0030.00617.15
7.3.60.0000.00817.15
7.3.50.0030.00917.15
7.3.40.0030.00917.15
7.3.30.0070.00417.15
7.3.20.0090.00617.15
7.3.10.0080.00817.15
7.3.00.0440.01015.73
7.2.330.0110.00616.48
7.2.320.0060.01116.70
7.2.310.0070.01016.73
7.2.300.0060.01316.64
7.2.290.0060.01016.44
7.2.240.0000.01017.15
7.2.230.0060.01017.15
7.2.220.0060.00317.15
7.2.210.0030.01417.15
7.2.200.0040.00717.15
7.2.190.0060.00917.15
7.2.180.0030.00617.15
7.2.170.0030.01017.15
7.2.160.0030.01017.15
7.2.150.0070.01017.15
7.2.140.0040.00717.15
7.2.130.0280.00915.72
7.2.120.0320.00515.86
7.2.110.0090.00715.88
7.2.100.0100.01016.05
7.2.90.0350.00716.06
7.2.80.0230.00915.88
7.2.70.0030.01316.11
7.2.60.0170.00716.10
7.2.50.0100.00716.05
7.2.40.0210.00915.92
7.2.30.0330.00815.94
7.2.20.0110.00516.01
7.2.10.0450.00516.10
7.2.00.0170.00515.98
7.1.330.0000.01717.15
7.1.320.0080.00417.15
7.1.310.0090.00317.15
7.1.300.0100.00317.15
7.1.290.0070.00717.15
7.1.280.0030.01017.15
7.1.270.0040.00817.15
7.1.260.0030.01317.15
7.1.250.0300.00815.48
7.0.330.0390.00413.37
5.6.380.0090.00314.26

preferences:
28.02 ms | 403 KiB | 5 Q