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_column($array, 'id'); $new_array = array_search ($keys, 1); 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.0040.01118.30
8.3.50.0130.00721.89
8.3.40.0130.00718.87
8.3.30.0060.00919.14
8.3.20.0000.00820.07
8.3.10.0090.00020.70
8.3.00.0050.00319.38
8.2.180.0130.00916.75
8.2.170.0070.00722.96
8.2.160.0070.00720.53
8.2.150.0060.00324.18
8.2.140.0030.00624.66
8.2.130.0050.00326.16
8.2.120.0030.00522.27
8.2.110.0060.00320.42
8.2.100.0080.00317.91
8.2.90.0000.00719.28
8.2.80.0080.00017.97
8.2.70.0000.00817.50
8.2.60.0040.00417.93
8.2.50.0030.00618.07
8.2.40.0050.00518.03
8.2.30.0030.00719.31
8.2.20.0050.00317.55
8.2.10.0040.00418.12
8.2.00.0080.00017.72
8.1.280.0100.01025.92
8.1.270.0090.00024.01
8.1.260.0050.00226.35
8.1.250.0080.00028.09
8.1.240.0030.00623.81
8.1.230.0050.00518.95
8.1.220.0000.00817.79
8.1.210.0030.00618.77
8.1.200.0000.01417.23
8.1.190.0030.00517.23
8.1.180.0040.00418.10
8.1.170.0030.00618.51
8.1.160.0040.00421.95
8.1.150.0070.00018.81
8.1.140.0070.00017.36
8.1.130.0030.00317.87
8.1.120.0000.00817.39
8.1.110.0060.00317.44
8.1.100.0000.00817.28
8.1.90.0080.00017.42
8.1.80.0070.00017.34
8.1.70.0040.00417.33
8.1.60.0050.00317.46
8.1.50.0080.00017.43
8.1.40.0000.00817.46
8.1.30.0030.00517.69
8.1.20.0040.00417.54
8.1.10.0070.00017.60
8.1.00.0040.00417.48
8.0.300.0030.00618.77
8.0.290.0000.00716.63
8.0.280.0030.00518.28
8.0.270.0050.00317.12
8.0.260.0030.00317.18
8.0.250.0040.00417.01
8.0.240.0000.00616.89
8.0.230.0070.00016.94
8.0.220.0040.00416.90
8.0.210.0040.00416.94
8.0.200.0030.00616.93
8.0.190.0000.00816.95
8.0.180.0050.00216.89
8.0.170.0000.00816.93
8.0.160.0030.00316.89
8.0.150.0040.00416.82
8.0.140.0030.00316.89
8.0.130.0000.00713.33
8.0.120.0040.00416.83
8.0.110.0080.00016.95
8.0.100.0040.00416.77
8.0.90.0030.00516.75
8.0.80.0090.01216.94
8.0.70.0070.00016.83
8.0.60.0070.00016.71
8.0.50.0070.00016.69
8.0.30.0100.01017.10
8.0.20.0090.00917.40
8.0.10.0040.00416.78
8.0.00.0100.01016.79
7.4.330.0000.00615.00
7.4.320.0060.00016.61
7.4.300.0030.00316.57
7.4.290.0060.00316.44
7.4.280.0070.00016.44
7.4.270.0000.00716.42
7.4.260.0030.00616.27
7.4.250.0070.00016.41
7.4.240.0060.00116.50
7.4.230.0000.00716.34
7.4.220.0060.01316.43
7.4.210.0030.01716.35
7.4.200.0040.00416.62
7.4.160.0120.00916.39
7.4.150.0030.01417.40
7.4.140.0070.00917.86
7.4.130.0090.01016.46
7.4.120.0110.00516.46
7.4.110.0120.00616.31
7.4.100.0070.01016.32
7.4.90.0030.01416.38
7.4.80.0130.00918.80
7.4.70.0100.01516.39
7.4.60.0080.00916.35
7.4.50.0040.00016.59
7.4.40.0040.01216.31
7.4.30.0110.00916.60
7.4.00.0120.00414.88
7.3.330.0050.00013.07
7.3.320.0000.00613.17
7.3.310.0030.00316.01
7.3.300.0030.00316.06
7.3.290.0130.00316.26
7.3.280.0070.01016.18
7.3.270.0080.00817.40
7.3.260.0120.00816.07
7.3.250.0060.01316.21
7.3.240.0040.01316.36
7.3.230.0090.00616.46
7.3.210.0070.01016.29
7.3.200.0190.00519.39
7.3.190.0190.00316.29
7.3.180.0090.00616.25
7.3.170.0100.00616.27
7.3.160.0080.00816.37
7.3.10.0080.00616.31
7.3.00.0070.00416.10
7.2.330.0070.01416.63
7.2.320.0090.00916.57
7.2.310.0080.00916.61
7.2.300.0130.00316.61
7.2.290.0120.00616.40
7.2.130.0000.01116.66
7.2.120.0070.01116.26
7.2.110.0070.00716.37
7.2.100.0070.00716.39
7.2.90.0080.00316.61
7.2.80.0060.00916.62
7.2.70.0060.00916.60
7.2.60.0080.00716.80
7.2.50.0100.00316.75
7.2.40.0120.00316.98
7.2.30.0070.01116.51
7.2.20.0080.00416.60
7.2.10.0110.00416.67
7.2.00.0040.01116.76
7.1.250.0090.00615.70
7.1.200.0130.00415.04
7.1.70.0000.00917.27
7.1.60.0120.00919.32
7.1.50.0030.01716.55
7.1.00.0070.07322.36
7.0.200.0000.01016.64
7.0.140.0030.07322.18
7.0.60.0070.08019.83
7.0.50.0070.06317.81
7.0.40.0200.07020.41
7.0.30.0270.08320.34
7.0.20.0300.06320.30
7.0.10.0000.06020.06
7.0.00.0030.04020.17
5.6.280.0030.07020.86
5.6.210.0130.04720.54
5.6.200.0000.04718.16
5.6.190.0130.08020.57
5.6.180.0100.03720.78
5.6.170.0300.07720.45
5.6.160.0070.05320.52
5.6.150.0070.04018.18
5.6.140.0030.06018.26
5.6.130.0100.06018.22
5.6.120.0100.05321.02
5.6.110.0130.05020.97
5.6.100.0070.08321.00
5.6.90.0030.04021.00
5.6.80.0030.03720.40
5.5.350.0230.08320.32
5.5.340.0000.04018.02
5.5.330.0100.06720.40
5.5.320.0230.07320.51
5.5.310.0400.06020.27
5.5.300.0130.06017.89
5.5.290.0000.04717.98
5.5.280.0100.07320.89
5.5.270.0000.06020.83
5.5.260.0100.07720.76
5.5.250.0100.08320.46
5.5.240.0200.08020.35
5.4.450.0470.03319.46
5.4.440.1070.06319.27
5.4.430.0930.06019.25
5.4.420.0670.00019.25
5.4.410.0670.00019.21
5.4.400.0630.00019.13
5.4.390.0630.00019.16
5.4.380.0300.05318.50
5.4.370.0430.05018.59
5.4.360.0500.06718.66
5.4.350.0270.06018.74
5.4.340.0330.06318.74
5.4.320.0030.03912.46
5.4.310.0070.03712.45
5.4.300.0030.03912.46
5.4.290.0060.03712.45
5.4.280.0060.03412.35
5.4.270.0050.03712.35
5.4.260.0050.03812.35
5.4.250.0030.04012.35
5.4.240.0040.03812.35
5.4.230.0070.04512.34
5.4.220.0040.04012.34
5.4.210.0050.03512.34
5.4.200.0080.03712.34
5.4.190.0080.03512.34
5.4.180.0060.03512.34
5.4.170.0070.04212.35
5.4.160.0020.04212.34
5.4.150.0060.03812.34
5.4.140.0080.03512.02
5.4.130.0050.03512.01
5.4.120.0050.03511.98
5.4.110.0080.03211.96
5.4.100.0070.03411.97
5.4.90.0080.04011.96
5.4.80.0080.03911.97
5.4.70.0110.03111.96
5.4.60.0060.03411.96
5.4.50.0100.03711.96
5.4.40.0040.03811.95
5.4.30.0070.03511.95
5.4.20.0050.03611.95
5.4.10.0070.03211.95
5.4.00.0040.03911.45
5.3.290.0050.04012.80
5.3.280.0030.04012.71
5.3.270.0060.03812.73
5.3.260.0060.04012.72
5.3.250.0050.04512.72
5.3.240.0030.04112.72
5.3.230.0080.04112.71
5.3.220.0050.03712.68
5.3.210.0050.03812.68
5.3.200.0100.03312.68
5.3.190.0100.03512.68
5.3.180.0040.03812.67
5.3.170.0050.03712.67
5.3.160.0050.03712.67
5.3.150.0070.03612.67
5.3.140.0060.03712.66
5.3.130.0060.03912.65
5.3.120.0070.03612.66
5.3.110.0080.04012.66
5.3.100.0080.03412.12
5.3.90.0060.03612.08
5.3.80.0060.03612.07
5.3.70.0100.03412.07
5.3.60.0080.03612.07
5.3.50.0070.03512.00
5.3.40.0050.03712.00
5.3.30.0080.03211.95
5.3.20.0060.03611.72
5.3.10.0030.03711.69
5.3.00.0050.04311.68
5.2.170.0060.0369.19
5.2.160.0010.0329.19
5.2.150.0060.0289.18
5.2.140.0030.0319.18
5.2.130.0010.0329.14
5.2.120.0060.0309.14
5.2.110.0040.0309.14
5.2.100.0040.0289.14
5.2.90.0070.0269.14
5.2.80.0040.0319.14
5.2.70.0090.0349.14
5.2.60.0040.0319.10
5.2.50.0070.0289.05
5.2.40.0070.0299.04
5.2.30.0050.0309.01
5.2.20.0070.0339.00
5.2.10.0030.0318.93
5.2.00.0040.0298.78
5.1.60.0040.0258.07
5.1.50.0050.0278.06
5.1.40.0060.0238.04
5.1.30.0070.0238.39
5.1.20.0050.0258.41
5.1.10.0070.0228.14
5.1.00.0040.0258.14
5.0.50.0030.0206.62
5.0.40.0040.0186.48
5.0.30.0040.0366.29
5.0.20.0040.0186.27
5.0.10.0020.0256.24
5.0.00.0040.0336.24
4.4.90.0010.0174.78
4.4.80.0030.0194.76
4.4.70.0010.0224.76
4.4.60.0040.0164.76
4.4.50.0070.0114.77
4.4.40.0050.0294.71
4.4.30.0030.0214.76
4.4.20.0020.0174.84
4.4.10.0030.0144.85
4.4.00.0010.0264.76
4.3.110.0020.0204.67
4.3.100.0040.0134.66
4.3.90.0040.0194.64
4.3.80.0040.0274.59
4.3.70.0010.0164.63
4.3.60.0020.0154.63
4.3.50.0030.0194.63
4.3.40.0070.0284.54
4.3.30.0020.0243.28
4.3.20.0020.0203.26
4.3.10.0020.0193.22
4.3.00.0200.01316.39

preferences:
36.22 ms | 401 KiB | 5 Q