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 (2, $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.0040.01118.43
8.3.50.0140.00821.87
8.3.40.0140.00718.56
8.3.30.0000.01419.11
8.3.20.0050.00320.29
8.3.10.0050.00320.48
8.3.00.0060.00319.25
8.2.180.0130.00716.38
8.2.170.0130.00622.96
8.2.160.0070.00720.38
8.2.150.0000.00824.18
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0040.00422.23
8.2.110.0030.00622.06
8.2.100.0000.01117.78
8.2.90.0000.00719.05
8.2.80.0000.00917.97
8.2.70.0000.00817.63
8.2.60.0080.00017.55
8.2.50.0040.00818.07
8.2.40.0030.00617.91
8.2.30.0060.00319.29
8.2.20.0040.00417.54
8.2.10.0050.00218.11
8.2.00.0060.00317.67
8.1.280.0070.01425.92
8.1.270.0090.00323.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00323.92
8.1.230.0080.00419.10
8.1.220.0000.00817.76
8.1.210.0060.00318.77
8.1.200.0030.00717.23
8.1.190.0000.00817.13
8.1.180.0100.00018.10
8.1.170.0080.00018.66
8.1.160.0040.00421.86
8.1.150.0000.00818.69
8.1.140.0040.00417.43
8.1.130.0070.00017.76
8.1.120.0030.00517.35
8.1.110.0030.00617.37
8.1.100.0000.00717.28
8.1.90.0000.00717.46
8.1.80.0070.00017.37
8.1.70.0000.00817.22
8.1.60.0030.00517.50
8.1.50.0000.00817.45
8.1.40.0030.00617.36
8.1.30.0050.00317.42
8.1.20.0040.00417.46
8.1.10.0050.00217.39
8.1.00.0000.00817.35
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0070.00018.29
8.0.270.0020.00517.14
8.0.260.0000.00817.09
8.0.250.0030.00316.91
8.0.240.0050.00216.77
8.0.230.0070.00016.79
8.0.220.0030.00316.80
8.0.210.0030.00316.77
8.0.200.0000.00816.88
8.0.190.0000.00716.76
8.0.180.0080.00016.75
8.0.170.0020.00516.72
8.0.160.0050.00316.77
8.0.150.0040.00416.67
8.0.140.0050.00216.80
8.0.130.0000.00713.25
8.0.120.0040.00416.77
8.0.110.0050.00316.83
8.0.100.0040.00416.83
8.0.90.0000.00716.78
8.0.80.0070.01016.77
8.0.70.0040.00416.82
8.0.60.0040.00416.76
8.0.50.0040.00416.85
8.0.30.0130.00617.03
8.0.20.0070.01317.40
8.0.10.0000.00716.95
8.0.00.0060.01116.78
7.4.330.0020.00215.00
7.4.320.0060.00016.53
7.4.300.0070.00016.41
7.4.290.0080.00016.51
7.4.280.0040.00416.55
7.4.270.0050.00216.34
7.4.260.0030.00316.44
7.4.250.0080.00016.49
7.4.240.0020.00516.48
7.4.230.0000.00716.50
7.4.220.0030.01516.37
7.4.210.0030.01716.40
7.4.200.0040.00416.50
7.4.160.0090.00916.22
7.4.150.0150.00417.40
7.4.140.0120.00517.86
7.4.130.0120.00516.38
7.4.120.0130.00516.55
7.4.110.0090.00916.46
7.4.100.0030.01416.57
7.4.90.0100.00716.57
7.4.80.0130.01018.80
7.4.70.0080.01516.40
7.4.60.0040.01616.45
7.4.50.0050.00316.13
7.4.40.0070.01216.43
7.4.30.0140.00316.37
7.4.00.0040.01114.71
7.3.330.0060.00013.02
7.3.320.0000.00612.89
7.3.310.0030.00316.25
7.3.300.0000.00716.17
7.3.290.0040.01116.09
7.3.280.0090.00916.18
7.3.270.0030.01417.40
7.3.260.0060.01316.13
7.3.250.0100.00616.29
7.3.240.0190.00316.30
7.3.230.0090.00616.39
7.3.210.0000.01616.20
7.3.200.0070.01719.39
7.3.190.0150.00616.50
7.3.180.0030.01316.45
7.3.170.0110.00616.27
7.3.160.0140.00316.20
7.3.120.0160.00314.84
7.3.110.0100.00714.80
7.3.100.0080.00814.91
7.3.90.0030.00814.39
7.3.80.0000.01114.88
7.3.70.0090.00414.40
7.3.60.0030.01314.74
7.3.50.0110.00414.37
7.3.40.0090.00614.50
7.3.30.0060.01214.57
7.3.20.0030.01016.26
7.3.10.0030.01016.57
7.3.00.0030.01216.57
7.2.330.0090.00916.59
7.2.320.0080.00916.49
7.2.310.0190.00016.54
7.2.300.0150.00616.57
7.2.290.0140.00416.52
7.2.250.0110.00614.73
7.2.240.0100.00714.56
7.2.230.0100.00014.90
7.2.220.0000.01615.06
7.2.210.0070.00714.59
7.2.200.0040.00814.65
7.2.190.0070.00714.87
7.2.180.0030.00914.66
7.2.170.0100.00714.98
7.2.60.0060.01016.67
7.2.00.0090.00319.44
7.1.330.0130.00315.58
7.1.320.0110.00415.81
7.1.310.0060.00915.81
7.1.300.0060.00915.66
7.1.290.0090.00315.42
7.1.280.0060.01215.81
7.1.270.0000.01415.75
7.1.260.0070.00715.52
7.1.200.0050.00315.57
7.1.100.0030.01017.93
7.1.70.0070.00317.17
7.1.60.0030.00919.32
7.1.50.0000.02316.69
7.1.00.0000.08022.29
7.0.200.0040.00416.34
7.0.140.0000.07722.21
7.0.60.0030.04320.00
7.0.50.0070.05317.85
7.0.40.0070.08720.21
7.0.30.0270.08020.17
7.0.20.0270.05020.23
7.0.10.0030.05020.30
7.0.00.0070.04020.19
5.6.280.0070.07021.10
5.6.210.0100.07720.47
5.6.200.0170.05718.22
5.6.190.0070.04020.43
5.6.180.0000.04720.61
5.6.170.0170.04720.37
5.6.160.0100.05720.51
5.6.150.0030.08318.21
5.6.140.0070.08318.12
5.6.130.0070.07718.11
5.6.120.0030.07721.09
5.6.110.0070.04021.02
5.6.100.0100.08721.10
5.6.90.0100.07720.96
5.6.80.0170.07320.36
5.5.350.0270.07320.38
5.5.340.0030.06017.88
5.5.330.0070.04720.21
5.5.320.0200.08020.17
5.5.310.0330.05020.30
5.5.300.0100.03317.87
5.5.290.0100.07718.00
5.5.280.0100.04020.87
5.5.270.0130.03720.72
5.5.260.0100.07020.96
5.5.250.0100.07720.79
5.5.240.0230.08320.26
5.4.450.0830.04319.21
5.4.440.0800.06719.58
5.4.430.0800.05319.11
5.4.420.0700.00019.29
5.4.410.0670.00019.32
5.4.400.0630.00019.02
5.4.390.0630.00019.18
5.4.380.0200.06318.72
5.4.370.0270.05018.68
5.4.360.0400.04718.50
5.4.350.0400.05718.56
5.4.340.0170.06318.59
5.4.320.0080.03612.46
5.4.310.0080.04112.45
5.4.300.0070.04512.46
5.4.290.0050.04612.45
5.4.280.0080.03412.35
5.4.270.0070.03412.35
5.4.260.0090.04012.35
5.4.250.0060.03812.35
5.4.240.0070.03512.35
5.4.230.0060.03912.34
5.4.220.0080.03412.34
5.4.210.0050.03612.34
5.4.200.0050.03812.34
5.4.190.0070.03412.34
5.4.180.0050.03612.34
5.4.170.0040.03712.35
5.4.160.0050.03612.35
5.4.150.0040.03712.34
5.4.140.0050.03712.03
5.4.130.0050.03612.02
5.4.120.0040.03611.97
5.4.110.0050.03511.97
5.4.100.0080.03211.96
5.4.90.0060.03711.97
5.4.80.0080.03411.97
5.4.70.0020.03811.96
5.4.60.0030.03611.96
5.4.50.0050.03611.96
5.4.40.0070.03311.95
5.4.30.0040.03811.95
5.4.20.0050.03611.95
5.4.10.0060.03511.95
5.4.00.0030.03811.45
5.3.290.0060.03912.80
5.3.280.0030.04012.71
5.3.270.0030.04112.73
5.3.260.0050.04012.72
5.3.250.0050.03912.72
5.3.240.0080.03412.72
5.3.230.0050.03912.71
5.3.220.0040.03712.68
5.3.210.0050.04012.68
5.3.200.0050.03712.68
5.3.190.0060.03612.68
5.3.180.0070.03912.67
5.3.170.0070.03412.67
5.3.160.0030.03912.67
5.3.150.0040.04512.67
5.3.140.0060.04312.66
5.3.130.0060.03912.66
5.3.120.0070.04512.66
5.3.110.0090.04012.66
5.3.100.0080.03512.12
5.3.90.0070.04112.08
5.3.80.0100.03312.08
5.3.70.0090.03312.07
5.3.60.0010.04012.06
5.3.50.0060.03612.00
5.3.40.0070.03512.00
5.3.30.0080.03411.95
5.3.20.0080.03311.72
5.3.10.0080.03211.69
5.3.00.0040.03911.68
5.2.170.0030.0329.19
5.2.160.0050.0299.18
5.2.150.0050.0309.18
5.2.140.0030.0329.18
5.2.130.0040.0359.14
5.2.120.0070.0309.14
5.2.110.0040.0299.14
5.2.100.0060.0269.14
5.2.90.0050.0289.14
5.2.80.0040.0319.14
5.2.70.0030.0319.14
5.2.60.0030.0339.09
5.2.50.0080.0269.06
5.2.40.0050.0289.04
5.2.30.0050.0309.02
5.2.20.0050.0289.00
5.2.10.0070.0268.92
5.2.00.0060.0348.79
5.1.60.0050.0318.07
5.1.50.0020.0338.06
5.1.40.0040.0298.04
5.1.30.0040.0308.39
5.1.20.0050.0308.41
5.1.10.0060.0288.14
5.1.00.0050.0248.14
5.0.50.0050.0246.62
5.0.40.0040.0266.48
5.0.30.0030.0346.29
5.0.20.0050.0226.27
5.0.10.0020.0216.24
5.0.00.0040.0396.23
4.4.90.0010.0174.78
4.4.80.0030.0184.76
4.4.70.0040.0134.76
4.4.60.0030.0144.75
4.4.50.0040.0174.77
4.4.40.0010.0264.71
4.4.30.0040.0214.76
4.4.20.0040.0134.84
4.4.10.0020.0224.85
4.4.00.0040.0294.76
4.3.110.0050.0224.67
4.3.100.0050.0144.67
4.3.90.0030.0164.63
4.3.80.0050.0284.59
4.3.70.0010.0154.63
4.3.60.0030.0154.62
4.3.50.0030.0154.63
4.3.40.0030.0274.53
4.3.30.0010.0163.28
4.3.20.0030.0233.26
4.3.10.0020.0203.22
4.3.00.0070.01716.39

preferences:
33.1 ms | 401 KiB | 5 Q