3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ ['Name' => 'Opony', 'Kod' =>'OPO', 'Price' => 100], ['Kod' =>'OLE', 'Name' => 'Olej', 'Price' => 20], ['Kod' =>'ABC', 'Price' => 20, 'Name' => 'abcdefg'] ]; foreach ($array as &$row) { ksort($row); } var_export($array);

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.0030.00518.22
8.3.120.0060.00320.88
8.3.110.0040.01516.36
8.3.100.0030.00616.30
8.3.90.0080.00026.77
8.3.80.0000.01016.75
8.3.70.0090.00616.58
8.3.60.0130.00418.28
8.3.50.0140.00720.12
8.3.40.0000.01518.57
8.3.30.0000.01718.95
8.3.20.0040.00424.18
8.3.10.0030.00524.66
8.3.00.0000.00826.16
8.2.250.0030.00516.50
8.2.240.0090.00017.07
8.2.230.0030.00620.94
8.2.220.0000.00824.06
8.2.210.0060.00326.77
8.2.200.0030.00618.34
8.2.190.0120.00916.58
8.2.180.0040.01525.92
8.2.170.0190.00318.79
8.2.160.0070.00722.96
8.2.150.0000.00725.66
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0080.00021.18
8.2.110.0030.00622.15
8.2.100.0040.00817.75
8.2.90.0000.00719.08
8.2.80.0030.00517.97
8.2.70.0000.00817.63
8.2.60.0000.00817.93
8.2.50.0000.00818.07
8.2.40.0080.00018.22
8.2.30.0070.00017.96
8.2.20.0000.00820.54
8.2.10.0050.00318.12
8.2.00.0040.00419.29
8.1.300.0070.00716.13
8.1.290.0060.00330.84
8.1.280.0110.00725.92
8.1.270.0050.00223.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00423.92
8.1.230.0110.00019.15
8.1.220.0090.00017.74
8.1.210.0040.00418.77
8.1.200.0100.00017.35
8.1.190.0070.00017.35
8.1.180.0080.00018.10
8.1.170.0050.00318.52
8.1.160.0070.00018.88
8.1.150.0040.00418.67
8.1.140.0000.00717.44
8.1.130.0000.00718.88
8.1.120.0000.00717.50
8.1.110.0040.00417.47
8.1.100.0030.00317.40
8.1.90.0030.00517.48
8.1.80.0060.00317.45
8.1.70.0050.00517.48
8.1.60.0090.00917.48
8.1.50.0130.00717.47
8.1.40.0140.00017.39
8.1.30.0140.00617.66
8.1.20.0170.00317.51
8.1.10.0060.01317.48
8.1.00.0120.00617.32
8.0.300.0000.01118.77
8.0.290.0040.00316.75
8.0.280.0030.00318.44
8.0.270.0030.00316.87
8.0.260.0030.00318.48
8.0.250.0030.00316.80
8.0.240.0000.00716.95
8.0.230.0070.00016.95
8.0.220.0020.00516.88
8.0.210.0070.00016.75
8.0.200.0120.00316.93
8.0.190.0090.00516.91
8.0.180.0120.00416.90
8.0.170.0130.00316.91
8.0.160.0090.00616.87
8.0.150.0110.00516.76
8.0.140.0080.00816.88
8.0.130.0150.00016.67
8.0.120.0140.00416.77
8.0.110.0080.00816.75
8.0.100.0120.00416.89
8.0.90.0100.00516.74
8.0.80.0050.01016.87
8.0.70.0080.00816.73
8.0.60.0110.00516.85
8.0.50.0050.00516.73
8.0.30.0060.01016.77
8.0.20.0090.00416.91
8.0.10.0180.00017.01
7.4.330.0050.00015.55
7.4.320.0070.00016.58
7.4.300.0130.00316.41
7.4.290.0090.00516.59
7.4.280.0070.00416.48
7.4.270.0150.00416.61
7.4.260.0090.00316.47
7.4.250.0120.00316.39
7.4.240.0110.00616.43
7.4.230.0110.00516.57
7.4.220.0130.00016.53
7.4.210.0050.00516.38
7.4.200.0070.00716.48
7.4.190.0150.00016.55
7.4.180.0150.00016.56
7.4.160.0120.00316.58
7.4.150.0100.00516.52
7.4.140.0110.00316.47
7.4.130.0090.00716.44
7.4.120.0160.00016.46
7.4.110.0100.00516.39
7.4.100.0130.00316.60
7.4.90.0100.00516.31
7.4.80.0080.00816.44
7.4.70.0120.00416.43
7.4.60.0120.00316.35
7.4.50.0130.00016.23
7.4.40.0080.00816.25
7.4.30.0110.00616.39
7.4.20.0130.00316.36
7.4.10.0050.00916.29
7.4.00.0090.00316.46

preferences:
29.11 ms | 403 KiB | 5 Q