3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrTags['banana'] = 3; $arrTags['mango'] = 2; $arrTags['apple1'] = 2; $arrTags['orange'] = 4; $arrTags['almond1'] = 2; $tag = []; $num = []; foreach($arrTags as $tag[] => $num[]); array_multisort($num, SORT_DESC, $tag, SORT_ASC, $arrTags); print_r($arrTags);

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.0110.00720.34
8.3.40.0100.00720.14
8.3.30.0140.00418.73
8.3.20.0080.00024.18
8.3.10.0030.00624.66
8.3.00.0070.00026.16
8.2.180.0070.00725.92
8.2.170.0060.01019.03
8.2.160.0040.01222.96
8.2.150.0000.00725.66
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0040.00420.69
8.2.110.0060.00320.99
8.2.100.0090.00317.91
8.2.90.0000.00918.16
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0040.00417.93
8.2.50.0030.00618.07
8.2.40.0050.00318.16
8.2.30.0000.00718.11
8.2.20.0040.00419.25
8.2.10.0000.00718.11
8.2.00.0030.00619.16
8.1.280.0040.01125.92
8.1.270.0080.00024.66
8.1.260.0030.00526.35
8.1.250.0180.00028.09
8.1.240.0090.00020.85
8.1.230.0040.00820.88
8.1.220.0040.00417.76
8.1.210.0060.00319.00
8.1.200.0030.00617.23
8.1.190.0020.00517.22
8.1.180.0080.00018.10
8.1.170.0080.00018.65
8.1.160.0000.00718.80
8.1.150.0040.00418.68
8.1.140.0070.00017.36
8.1.130.0000.00718.88
8.1.120.0070.00017.36
8.1.110.0050.00217.42
8.1.100.0060.00917.32
8.1.90.0130.00317.42
8.1.80.0120.00417.28
8.1.70.0110.00617.30
8.1.60.0160.00017.41
8.1.50.0160.00317.37
8.1.40.0100.00717.39
8.1.30.0070.00717.51
8.1.20.0080.00917.52
8.1.10.0110.00717.55
8.1.00.0100.00517.37
8.0.300.0000.00720.08
8.0.290.0000.00716.63
8.0.280.0070.00018.34
8.0.270.0030.00316.79
8.0.260.0030.00318.41
8.0.250.0030.00316.95
8.0.240.0000.00716.91
8.0.230.0070.00716.99
8.0.220.0150.00016.80
8.0.210.0110.00416.73
8.0.200.0070.00716.82
8.0.190.0090.00616.88
8.0.180.0110.00416.70
8.0.170.0090.00616.84
8.0.160.0090.00616.87
8.0.150.0050.01016.89
8.0.140.0150.00016.68
8.0.130.0100.00416.78
8.0.120.0050.01116.91
8.0.110.0110.00416.91
8.0.100.0090.00516.87
8.0.90.0100.00516.84
8.0.80.0150.00016.85
8.0.70.0040.01116.71
8.0.60.0030.00616.66
8.0.50.0000.01416.86
8.0.30.0150.00016.82
8.0.20.0000.01216.79
8.0.10.0070.00416.90
7.4.330.0000.00515.55
7.4.320.0000.00616.48
7.4.300.0080.00616.57
7.4.290.0140.00016.50
7.4.280.0120.00316.47
7.4.270.0120.00316.46
7.4.260.0070.00616.58
7.4.250.0060.00616.46
7.4.240.0110.00316.56
7.4.230.0130.00316.59
7.4.220.0090.00316.59
7.4.210.0110.00216.49
7.4.200.0070.00716.53
7.4.190.0070.00716.55
7.4.180.0110.00316.54
7.4.160.0120.00316.55
7.4.150.0070.00716.47
7.4.140.0060.00916.51
7.4.130.0120.00216.33
7.4.120.0070.00716.46
7.4.110.0050.00816.46
7.4.100.0120.00316.61
7.4.90.0100.00416.42
7.4.80.0110.00416.39
7.4.70.0100.00516.48
7.4.60.0120.00316.44
7.4.50.0140.00016.22
7.4.40.0070.00716.34
7.4.30.0120.00216.43
7.4.20.0070.00716.53
7.4.10.0120.00316.48
7.4.00.0000.01216.48

preferences:
51.61 ms | 400 KiB | 5 Q