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'] ]; array_walk($array, fn(&$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.0090.00018.04
8.3.120.0100.00620.65
8.3.110.0080.00016.48
8.3.100.0170.00318.30
8.3.90.0000.00926.77
8.3.80.0000.00916.50
8.3.70.0110.00416.58
8.3.60.0060.01218.39
8.3.50.0120.00919.99
8.3.40.0150.00018.84
8.3.30.0120.00918.94
8.3.20.0000.00824.18
8.3.10.0040.00424.66
8.3.00.0030.00526.16
8.2.250.0040.00416.75
8.2.240.0040.00816.87
8.2.230.0040.00420.94
8.2.220.0050.00324.06
8.2.210.0110.00726.77
8.2.200.0090.00018.29
8.2.190.0150.00318.54
8.2.180.0150.00725.92
8.2.170.0210.00018.91
8.2.160.0120.00322.96
8.2.150.0080.00025.66
8.2.140.0080.00024.66
8.2.130.0070.00726.16
8.2.120.0040.00426.16
8.2.110.0050.00522.14
8.2.100.0040.01417.68
8.2.90.0050.00317.75
8.2.80.0000.00818.84
8.2.70.0070.00317.63
8.2.60.0060.00317.80
8.2.50.0030.00518.07
8.2.40.0030.00518.22
8.2.30.0000.00818.11
8.2.20.0000.00720.39
8.2.10.0000.00818.16
8.2.00.0050.00219.36
8.1.300.0140.00319.99
8.1.290.0090.00030.84
8.1.280.0170.00725.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0000.01018.93
8.1.230.0070.00317.77
8.1.220.0090.00017.75
8.1.210.0030.00618.77
8.1.200.0060.00317.38
8.1.190.0030.00617.23
8.1.180.0000.00918.10
8.1.170.0050.00318.90
8.1.160.0030.00518.80
8.1.150.0070.00018.68
8.1.140.0000.00717.46
8.1.130.0030.00318.76
8.1.120.0000.00717.36
8.1.110.0000.00817.50
8.1.100.0050.00217.36
8.1.90.0040.00417.38
8.1.80.0070.00017.45
8.1.70.0120.00417.29
8.1.60.0060.00317.42
8.1.50.0000.01017.42
8.1.40.0050.00517.41
8.1.30.0070.00717.61
8.1.20.0190.00417.51
8.1.10.0130.01017.33
8.1.00.0170.00417.47
8.0.300.0000.00718.77
8.0.290.0000.00816.63
8.0.280.0050.00218.38
8.0.270.0040.00416.67
8.0.260.0030.00318.32
8.0.250.0000.00716.92
8.0.240.0030.00616.87
8.0.230.0000.00716.89
8.0.220.0000.00716.83
8.0.210.0070.00016.84
8.0.200.0180.00316.87
8.0.190.0190.00016.96
8.0.180.0110.00716.85
8.0.170.0120.00316.82
8.0.160.0050.01316.88
8.0.150.0000.01616.75
8.0.140.0150.00016.82
8.0.130.0130.00416.82
8.0.120.0040.01216.85
8.0.110.0130.00316.92
8.0.100.0120.00316.94
8.0.90.0080.00816.79
8.0.80.0080.00816.78
8.0.70.0110.00416.75
8.0.60.0140.00516.79
8.0.50.0120.00316.82
8.0.30.0160.00316.64
8.0.20.0140.00416.88
8.0.10.0080.00816.97
7.4.330.0030.00315.55
7.4.320.0000.00616.49
7.4.300.0100.00516.62
7.4.290.0090.00516.35
7.4.280.0120.00016.50
7.4.270.0200.00016.50
7.4.260.0040.01216.48
7.4.250.0140.00316.49
7.4.240.0100.00716.56
7.4.230.0140.00016.67
7.4.220.0120.00416.49
7.4.210.0120.00416.39
7.4.200.0080.00816.39
7.4.190.0090.00616.51
7.4.180.0130.00316.43
7.4.160.0160.00016.66
7.4.150.0110.00416.45
7.4.140.0130.00316.41
7.4.130.0160.00016.43
7.4.120.0130.00216.36
7.4.110.0120.00416.39
7.4.100.0100.00716.51
7.4.90.0060.01016.41
7.4.80.0090.00516.46
7.4.70.0000.00816.45
7.4.60.0040.00416.37
7.4.50.0030.00616.23
7.4.40.0080.00016.44
7.4.30.0040.00416.30
7.4.20.0050.00316.46
7.4.10.0040.00416.41
7.4.00.0060.00516.43

preferences:
26.68 ms | 403 KiB | 5 Q