3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ 65 => [ ["p" => 234, "sp" => 234], ["p" => 53, "sp" => 5], ["p" => 530, "sp" => 5], ] ]; $col = 'p'; // set the column you want to order on $column = array_column($arr[65], $col); array_multisort($column, SORT_ASC, $arr[65]); // SORT_ASC or SORT_DESC $arr[65] = $arr[65][0]; // only keep the record with lowest 'p' value var_dump($arr);

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.5.00.0110.01019.99
8.4.150.0030.00014.05
8.4.140.0110.01017.39
8.4.130.0120.00817.96
8.4.120.0070.00620.66
8.4.110.0130.00919.10
8.4.100.0030.00617.82
8.4.90.0100.01017.58
8.4.80.0030.00617.79
8.4.70.0120.00917.90
8.4.60.0100.01017.94
8.4.50.0090.01219.50
8.4.40.0160.00617.76
8.4.30.0100.01020.39
8.4.20.0060.00317.91
8.4.10.0060.01222.48
8.3.280.0110.00918.22
8.3.270.0150.00518.32
8.3.260.0110.00516.72
8.3.250.0080.01018.72
8.3.240.0060.00516.51
8.3.230.0080.00816.42
8.3.220.0130.00616.46
8.3.210.0110.00716.53
8.3.200.0130.00716.73
8.3.190.0110.00918.38
8.3.180.0060.00216.53
8.3.170.0070.01118.63
8.3.160.0110.00718.24
8.3.150.0090.00618.69
8.3.140.0040.00418.25
8.3.130.0000.01418.46
8.3.120.0040.01220.74
8.3.110.0050.00520.94
8.3.100.0060.00324.06
8.3.90.0040.00426.77
8.3.80.0090.00617.97
8.3.70.0180.00416.59
8.3.60.0120.00316.50
8.3.50.0110.00824.43
8.3.40.0040.01818.40
8.3.30.0090.00618.85
8.3.20.0070.00024.18
8.3.10.0000.00824.66
8.3.00.0050.00326.16
8.2.290.0060.00418.72
8.2.280.0060.00418.46
8.2.270.0120.00617.42
8.2.260.0070.01016.72
8.2.250.0040.00416.71
8.2.240.0060.00318.87
8.2.230.0080.00022.58
8.2.220.0040.00437.54
8.2.210.0040.00426.77
8.2.200.0040.00418.16
8.2.190.0140.00716.78
8.2.180.0110.00425.92
8.2.170.0100.01318.89
8.2.160.0110.00422.96
8.2.150.0070.00025.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00526.35
8.2.110.0030.00622.26
8.2.100.0030.01019.58
8.2.90.0050.00317.75
8.2.80.0060.00318.59
8.2.70.0030.00617.75
8.2.60.0000.00817.50
8.2.50.0050.00318.05
8.2.40.0060.00318.16
8.2.30.0000.00718.06
8.2.20.0040.00418.12
8.2.10.0070.00021.02
8.2.00.0040.00419.25
8.1.330.0130.00616.79
8.1.320.0090.01116.22
8.1.310.0040.00416.78
8.1.300.0040.00418.19
8.1.290.0000.00930.84
8.1.280.0070.00725.92
8.1.270.0070.00023.99
8.1.260.0050.00328.09
8.1.250.0070.00028.09
8.1.240.0030.00620.79
8.1.230.0090.00317.85
8.1.220.0060.00317.79
8.1.210.0040.00418.77
8.1.200.0030.00617.13
8.1.190.0040.00417.23
8.1.180.0050.00318.10
8.1.170.0050.00218.54
8.1.160.0050.00318.81
8.1.150.0050.00318.82
8.1.140.0000.00718.74
8.1.130.0030.00320.07
8.1.120.0090.00017.29
8.1.110.0040.00417.41
8.1.100.0030.00617.45
8.1.90.0040.00417.40
8.1.80.0000.00717.44
8.1.70.0030.00317.38
8.1.60.0070.00017.38
8.1.50.0000.00817.51
8.1.40.0000.00817.36
8.1.30.0030.00617.59
8.1.20.0050.00317.50
8.1.10.0050.00317.55
8.1.00.0050.00317.52
8.0.300.0070.00020.51
8.0.290.0050.00516.63
8.0.280.0040.00418.32
8.0.270.0030.00317.91
8.0.260.0030.00318.38
8.0.250.0020.00516.80
8.0.240.0050.00316.91
8.0.230.0030.00716.84
8.0.220.0070.00016.86
8.0.210.0000.00816.81
8.0.200.0070.00016.95
8.0.190.0070.00016.88
8.0.180.0030.00516.77
8.0.170.0050.00516.77
8.0.160.0000.00716.88
8.0.150.0070.00016.85
8.0.140.0000.00716.77
8.0.130.0000.00513.32
8.0.120.0000.00716.78
8.0.110.0000.00716.94
8.0.100.0000.00816.94
8.0.90.0000.00716.61
8.0.80.0080.00916.80
8.0.70.0050.00316.84
8.0.60.0040.00416.81
8.0.50.0000.00716.84
8.0.30.0040.01617.14
8.0.20.0140.01317.12
8.0.10.0100.01016.88
8.0.00.0000.01816.94
7.4.330.0030.00315.55
7.4.320.0000.00716.45
7.4.300.0060.00016.45
7.4.290.0040.00416.50
7.4.280.0040.00416.29
7.4.270.0000.00716.56
7.4.260.0030.00313.16
7.4.250.0030.00516.33
7.4.240.0000.00716.43
7.4.230.0000.00716.63
7.4.220.0040.00416.60
7.4.210.0070.01116.44
7.4.200.0000.00716.57
7.4.150.0130.00716.67
7.4.140.0080.00816.54
7.4.130.0080.01016.37
7.4.120.0090.01216.28
7.4.110.0070.01016.38
7.4.100.0090.00916.37
7.4.90.0120.00616.14
7.4.80.0160.00316.47
7.4.70.0120.00616.30
7.4.60.0100.01316.26
7.4.50.0090.00916.26
7.4.40.0270.01416.02
7.4.30.0090.01016.38
7.4.20.0090.00816.32
7.4.10.0090.00916.36
7.4.00.0110.00716.38
7.3.330.0000.00716.06
7.3.320.0060.00013.07
7.3.310.0030.00316.05
7.3.300.0000.00616.11
7.3.290.0120.00616.28
7.3.270.0130.00716.21
7.3.260.0090.01016.20
7.3.250.0060.01216.46
7.3.240.0110.00716.31
7.3.230.0170.00016.24
7.3.220.0130.00516.20
7.3.210.0100.00716.25
7.3.200.0130.00316.51
7.3.190.0140.00616.40
7.3.180.0170.00016.04
7.3.170.0120.00616.45
7.3.160.0030.01816.55
7.3.150.0090.00915.99
7.3.140.0070.01016.09
7.3.130.0120.00616.27
7.3.120.0120.00616.38
7.3.110.0070.01016.34
7.3.100.0110.00716.63
7.3.90.0120.00616.63
7.3.80.0190.00616.00
7.3.70.0110.01416.25
7.3.60.0130.01316.36
7.3.50.0140.01116.21
7.3.40.0200.00616.05
7.3.30.0140.00316.20
7.3.20.0200.00616.01
7.3.10.0080.01716.45
7.3.00.0080.00816.15

preferences:
34.74 ms | 403 KiB | 5 Q