3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = Array ( 0 => Array ( 'id' => 1, 'column2' => 'value2', 'column3' => 'value3', 'column4' => 'value4', 'column5' => 'value5' ), 1 => Array ( 'id' => 1, 'column2' => 'value2', 'column3' => 'value3', 'column4' => 'value4', 'column5' => 'value5' ), 2 => Array ( 'id' => 2, 'column2' => 'value2', 'column3' => 'value3', 'column4' => 'value4', 'column5' => 'value5' ), ); $keys = array_keys(array_column($array, 'id'), 1); $new_array = array_map(function($k) use ($array){return $array[$k];}, $keys); print_r($new_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.60.0100.00716.50
8.3.50.0150.00321.10
8.3.40.0090.00618.70
8.3.30.0130.00619.05
8.3.20.0030.00620.20
8.3.10.0040.00423.44
8.3.00.0060.00919.18
8.2.180.0180.00316.63
8.2.170.0040.01122.96
8.2.160.0170.00320.39
8.2.150.0050.00324.18
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0080.00021.07
8.2.110.0130.01020.74
8.2.100.0040.00817.59
8.2.90.0120.00518.63
8.2.80.0060.00317.97
8.2.70.0110.00648.54
8.2.60.0110.00348.48
8.2.50.0130.00048.71
8.2.40.0100.00531.08
8.2.30.0110.00338.83
8.2.20.0100.00438.25
8.2.10.0060.00730.14
8.2.00.0030.00726.09
8.1.280.0090.00625.92
8.1.270.0040.00422.16
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0000.00922.74
8.1.230.0160.00318.41
8.1.220.0030.00617.79
8.1.210.0040.00418.77
8.1.200.0080.00548.40
8.1.190.0090.00348.34
8.1.180.0100.00249.18
8.1.170.0110.00238.61
8.1.160.0060.00638.68
8.1.150.0060.00938.69
8.1.140.0110.00239.12
8.1.130.0080.00528.85
8.1.120.0090.00533.02
8.1.110.0090.00533.00
8.1.100.0100.00426.31
8.1.90.0090.00627.80
8.1.80.0090.00527.84
8.1.70.0100.00327.79
8.1.60.0110.00527.84
8.1.50.0100.00726.35
8.1.40.0100.00726.37
8.1.30.0130.00424.46
8.1.20.0120.00624.46
8.1.10.0110.00522.70
8.1.00.0130.00622.63
8.0.300.0070.00018.77
8.0.290.0090.00348.04
8.0.280.0120.00138.50
8.0.270.0100.00437.98
8.0.260.0090.00432.77
8.0.250.0070.00527.91
8.0.240.0080.00532.73
8.0.230.0090.00329.56
8.0.220.0100.00427.42
8.0.210.0080.00627.40
8.0.200.0110.00427.43
8.0.190.0110.00427.45
8.0.180.0070.00623.86
8.0.170.0100.00625.90
8.0.160.0100.00623.90
8.0.150.0100.00623.82
8.0.140.0100.00623.15
8.0.130.0120.00321.75
8.0.120.0110.00421.41
8.0.110.0110.00521.40
8.0.100.0110.00421.08
8.0.90.0110.00521.08
8.0.80.0080.00918.80
8.0.70.0130.00520.79
8.0.60.0120.00520.80
8.0.50.0120.00520.78
8.0.30.0120.00619.54
8.0.20.0110.00719.42
8.0.10.0110.00719.57
8.0.00.0080.00719.20
7.4.330.0050.00426.75
7.4.320.0080.00632.50
7.4.300.0100.00527.22
7.4.290.0110.00425.62
7.4.280.0080.00421.05
7.4.270.0120.00522.88
7.4.260.0130.00521.84
7.4.250.0130.00521.15
7.4.240.0120.00420.57
7.4.230.0120.00520.84
7.4.220.0100.00520.31
7.4.210.0100.00620.09
7.4.200.0130.00420.10
7.4.190.0110.00520.61
7.4.180.0130.00420.62
7.4.160.0120.00619.30
7.4.150.0100.00719.17
7.4.140.0110.00718.96
7.4.130.0120.00518.88
7.4.120.0110.00618.63
7.4.110.0100.00718.67
7.4.100.0110.00718.64
7.4.90.0120.00618.54
7.4.80.0100.00818.63
7.4.70.0100.00918.39
7.4.60.0110.00718.22
7.4.50.0100.00918.17
7.4.40.0120.00618.07
7.4.30.0110.00818.05
7.4.20.0110.00817.97
7.4.10.0100.00917.82
7.4.00.0090.00717.61
7.3.330.0120.00420.63
7.3.320.0130.00420.72
7.3.310.0120.00520.99
7.3.300.0120.00320.63
7.3.290.0110.00520.36
7.3.280.0110.00618.93
7.3.270.0140.00519.00
7.3.260.0120.00618.82
7.3.250.0110.00618.74
7.3.240.0120.00518.66
7.3.230.0110.00818.49
7.3.220.0120.00718.54
7.3.210.0110.00718.41
7.3.200.0110.00618.49
7.3.190.0110.00718.26
7.3.180.0110.00718.14
7.3.170.0110.00818.10
7.3.160.0110.00818.03
7.3.150.0110.00717.93
7.3.140.0120.00717.90
7.3.130.0120.00717.69
7.3.120.0110.00817.56
7.3.110.0110.00817.53
7.3.100.0120.00717.25
7.3.90.0110.00817.39
7.3.80.0100.00817.17
7.3.70.0100.00817.14
7.3.60.0110.00617.12
7.3.50.0110.00717.16
7.3.40.0110.00717.14
7.3.30.0110.00617.17
7.3.20.0140.00617.57
7.3.10.0170.00717.34
7.3.00.0230.00717.28
7.2.340.0130.00718.76
7.2.330.0140.00618.59
7.2.320.0150.00618.51
7.2.310.0130.00818.26
7.2.300.0140.00718.26
7.2.290.0130.00818.13
7.2.280.0130.00718.02
7.2.270.0120.00918.05
7.2.260.0110.00917.81
7.2.250.0130.00717.73
7.2.240.0120.00917.67
7.2.230.0120.00817.45
7.2.220.0120.00717.45
7.2.210.0120.00717.35
7.2.200.0120.00817.28
7.2.190.0110.00817.26
7.2.180.0120.00717.25
7.2.170.0110.00817.27
7.2.160.0100.00917.27
7.2.150.0150.00717.64
7.2.140.0130.00817.70
7.2.130.0220.00717.48
7.2.120.0220.00817.46
7.2.110.0210.00717.51
7.2.100.0180.00817.51
7.2.90.0220.00817.54
7.2.80.0180.00917.46
7.2.70.0190.00817.51
7.2.60.0180.00817.47
7.2.50.0220.00817.46
7.2.40.0200.00817.50
7.2.30.0200.00817.51
7.2.20.0190.00817.51
7.2.10.0200.00817.49
7.2.00.0170.00817.52
7.1.330.0200.00717.34
7.1.320.0160.00717.07
7.1.310.0150.00716.92
7.1.300.0140.00816.85
7.1.290.0140.00816.83
7.1.280.0180.00616.82
7.1.270.0130.00816.85
7.1.260.0140.00716.80
7.1.250.0230.00716.43
7.1.240.0270.00816.42
7.1.230.0220.00916.50
7.1.220.0240.00816.46
7.1.210.0220.00716.44
7.1.200.0220.00716.46
7.1.190.0210.00716.47
7.1.180.0230.00816.46
7.1.170.0240.00816.46
7.1.160.0220.00716.48
7.1.150.0220.00716.46
7.1.140.0210.00716.45
7.1.130.0210.00816.45
7.1.120.0230.00716.45
7.1.110.0220.00716.44
7.1.100.0190.00816.48
7.1.90.0220.00816.44
7.1.80.0200.00716.47
7.1.70.0200.00816.43
7.1.60.0210.00817.05
7.1.50.0240.00717.05
7.1.40.0190.00717.02
7.1.30.0210.00717.02
7.1.20.0190.00717.01
7.1.10.0220.00816.41
7.1.00.0190.00716.43
7.0.330.0240.00816.03
7.0.320.0220.00716.08
7.0.310.0220.00816.07
7.0.300.0220.00716.07
7.0.290.0210.00816.07
7.0.280.0230.00716.09
7.0.270.0220.00716.06
7.0.260.0210.00816.07
7.0.250.0210.00816.13
7.0.240.0210.00716.14
7.0.230.0200.00716.15
7.0.220.0220.00716.16
7.0.210.0210.00816.07
7.0.200.0200.00716.13
7.0.190.0220.00816.11
7.0.180.0210.00816.11
7.0.170.0190.00716.11
7.0.160.0190.00716.05
7.0.150.0200.00716.09
7.0.140.0220.00616.11
7.0.130.0210.00716.10
7.0.120.0190.00816.15
7.0.110.0190.00716.02
7.0.100.0240.00816.02
7.0.90.0220.00715.98
7.0.80.0170.00816.01
7.0.70.0210.00815.99
7.0.60.0190.00715.98
7.0.50.0180.00816.01
7.0.40.0180.00815.97
7.0.30.0230.00715.99
7.0.20.0200.00715.94
7.0.10.0190.00715.98
7.0.00.0180.00815.97
5.6.400.0140.00816.68
5.6.390.0150.00816.72
5.6.380.0150.00916.37
5.6.370.0150.00816.34
5.6.360.0140.00916.35
5.6.350.0140.00916.33
5.6.340.0140.00916.36
5.6.330.0150.00816.36
5.6.320.0150.00816.35
5.6.310.0140.00916.33
5.6.300.0140.01016.52
5.6.290.0140.01116.55
5.6.280.0150.01016.53
5.6.270.0140.01116.53
5.6.260.0140.01116.59
5.6.250.0150.01016.60
5.6.240.0150.01116.58
5.6.230.0140.01116.60
5.6.220.0140.01116.59
5.6.210.0150.01016.59
5.6.200.0150.01116.62
5.6.190.0140.01116.63
5.6.180.0150.01016.61
5.6.170.0130.01116.61
5.6.160.0140.01016.61
5.6.150.0150.01016.59
5.6.140.0130.01216.61
5.6.130.0140.01116.61
5.6.120.0130.01216.59
5.6.110.0140.01216.58
5.6.100.0150.01016.59
5.6.90.0140.01116.54
5.6.80.0130.01116.45
5.6.70.0130.01116.52
5.6.60.0140.01016.50
5.6.50.0130.01016.43
5.6.40.0130.01116.53
5.6.30.0130.01216.49
5.6.20.0130.01116.49
5.6.10.0140.01016.48
5.6.00.0130.01116.47
5.5.380.0150.01016.02
5.5.370.0130.01116.01
5.5.360.0140.01015.97
5.5.350.0150.01015.92
5.5.340.0150.01015.97
5.5.330.0130.01115.96
5.5.320.0140.01015.98
5.5.310.0150.01015.98
5.5.300.0140.01115.99
5.5.290.0140.01015.95
5.5.280.0140.01015.98
5.5.270.0140.01115.96
5.5.260.0140.01015.97
5.5.250.0150.01015.94
5.5.240.0140.01115.94
5.5.230.0140.01015.91
5.5.220.0140.01015.91
5.5.210.0140.01015.93
5.5.200.0130.01115.88
5.5.190.0130.01015.85
5.5.180.0140.01015.88
5.5.170.0140.00815.81
5.5.160.0130.01015.87
5.5.150.0140.01015.88
5.5.140.0130.01015.81
5.5.130.0140.00915.90
5.5.120.0130.01015.83
5.5.110.0130.01015.83
5.5.100.0140.01015.93
5.5.90.0130.01115.90
5.5.80.0130.01115.90
5.5.70.0150.01015.91
5.5.60.0140.00915.90
5.5.50.0140.01015.93
5.5.40.0130.01015.90
5.5.30.0130.01115.91
5.5.20.0120.01115.89
5.5.10.0130.01115.85
5.5.00.0140.01015.84
5.4.450.0110.00813.83
5.4.440.0100.00913.83
5.4.430.0110.00813.84
5.4.420.0110.00813.82
5.4.410.0100.00913.79
5.4.400.0110.00813.72
5.4.390.0110.00813.73
5.4.380.0110.00813.72
5.4.370.0110.00913.75
5.4.360.0110.00713.75
5.4.350.0110.00813.75
5.4.340.0110.00813.78
5.4.330.0100.00613.47
5.4.320.0110.00813.78
5.4.310.0100.00813.77
5.4.300.0100.00813.75
5.4.290.0100.00913.75
5.4.280.0110.00813.74
5.4.270.0110.00813.74
5.4.260.0110.00813.76
5.4.250.0110.00813.75
5.4.240.0100.00813.75
5.4.230.0110.00813.69
5.4.220.0120.00713.70
5.4.210.0110.00813.72
5.4.200.0120.00713.69
5.4.190.0100.00813.68
5.4.180.0110.00813.67
5.4.170.0100.00913.71
5.4.160.0100.00913.72
5.4.150.0100.00813.71
5.4.140.0110.00813.64
5.4.130.0110.00813.63
5.4.120.0110.00813.61
5.4.110.0110.00813.63
5.4.100.0110.00813.64
5.4.90.0100.00913.61
5.4.80.0110.00713.66
5.4.70.0100.00813.65
5.4.60.0100.00813.65
5.4.50.0100.00813.62
5.4.40.0110.00713.63
5.4.30.0100.00913.63
5.4.20.0100.00813.65
5.4.10.0100.00813.64
5.4.00.0100.00813.56
5.3.290.0110.00913.69
5.3.280.0110.00813.61
5.3.270.0110.00813.63
5.3.260.0100.00813.69
5.3.250.0100.00813.68
5.3.240.0110.00813.55
5.3.230.0110.00813.57
5.3.220.0100.00913.63
5.3.210.0110.00913.62
5.3.200.0100.00913.62
5.3.190.0100.00813.69
5.3.180.0100.00913.78
5.3.170.0100.00913.78
5.3.160.0100.00813.78
5.3.150.0110.00913.77
5.3.140.0110.00913.74
5.3.130.0110.00813.78
5.3.120.0100.00813.77
5.3.110.0110.00813.77
5.3.100.0090.00913.71
5.3.90.0100.00813.77
5.3.80.0110.00813.64
5.3.70.0110.00813.63
5.3.60.0100.00713.64
5.3.50.0110.00713.63
5.3.40.0100.00813.63
5.3.30.0100.00813.61
5.3.20.0100.00813.57
5.3.10.0090.00913.46
5.3.00.0100.00813.46

preferences:
55.4 ms | 401 KiB | 5 Q