3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array ('1' => (object)array( 'id' => 225, 'user_id' => 1, 'name' => 'Blue Quilted Leather Jacket by Minusey - $499' ), '2' => (object)array( 'id' => 222, 'user_id' => 1, 'name' => 'Darling New Bathtub by Duravit - $6300' ), '3' => (object)array( 'id' => 222, 'user_id' => 1, 'name' => 'Darling New Bathtub by Duravit - $6300' ) ); //print_r(array_column((array)$array, 'id')); $array = array_map(function($x){return (array)$x;}, $array); $ids = array_unique(array_column($array, 'id')); $array = array_filter($array, function($x){return in_array($x['id'], $ids)}); print_r($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)
5.4.310.0080.04112.52
5.4.300.0050.03712.52
5.4.290.0060.04012.52
5.4.280.0090.03812.42
5.4.270.0050.03712.41
5.4.260.0050.04312.41
5.4.250.0080.03612.42
5.4.240.0090.04412.41
5.4.230.0060.04112.41
5.4.220.0060.04612.41
5.4.210.0030.03812.41
5.4.200.0060.03812.41
5.4.190.0070.03512.40
5.4.180.0070.03512.41
5.4.170.0050.03612.41
5.4.160.0040.03812.41
5.4.150.0060.03712.40
5.4.140.0040.03912.09
5.4.130.0080.03312.07
5.4.120.0080.04812.04
5.4.110.0080.04812.04
5.4.100.0060.03812.04
5.4.90.0060.04312.04
5.4.80.0080.03812.04
5.4.70.0110.03412.03
5.4.60.0060.05012.04
5.4.50.0080.03612.03
5.4.40.0060.03612.02
5.4.30.0140.03112.00
5.4.20.0030.04412.02
5.4.10.0080.03712.01
5.4.00.0040.04711.51
5.3.280.0060.05212.70
5.3.270.0090.05112.72
5.3.260.0070.05312.71
5.3.250.0070.05312.72
5.3.240.0140.04312.72
5.3.230.0100.04812.71
5.3.220.0050.04012.68
5.3.210.0050.04612.68
5.3.200.0050.04212.68
5.3.190.0050.04112.68
5.3.180.0080.04112.67
5.3.170.0080.03612.67
5.3.160.0080.04812.67
5.3.150.0080.04712.67
5.3.140.0080.03612.66
5.3.130.0080.04012.66
5.3.120.0090.03712.65
5.3.110.0090.04112.66
5.3.100.0110.03812.13
5.3.90.0140.04412.11
5.3.80.0120.04512.10
5.3.70.0120.04112.10
5.3.60.0030.04212.08
5.3.50.0060.03812.04
5.3.40.0090.04012.03
5.3.30.0050.04411.99
5.3.20.0090.04711.78
5.3.10.0070.03611.74
5.3.00.0060.04011.73
5.2.170.0070.0339.18
5.2.160.0070.0319.18
5.2.150.0080.0419.19
5.2.140.0080.0409.18
5.2.130.0110.0379.14
5.2.120.0060.0419.14
5.2.110.0060.0379.15
5.2.100.0080.0329.15
5.2.90.0110.0369.14
5.2.80.0120.0369.14
5.2.70.0120.0359.13
5.2.60.0100.0369.10
5.2.50.0060.0419.06
5.2.40.0050.0319.04
5.2.30.0050.0319.02
5.2.20.0040.0319.00
5.2.10.0070.0298.93
5.2.00.0070.0288.78
5.1.60.0070.0228.07
5.1.50.0050.0328.07
5.1.40.0050.0248.05
5.1.30.0010.0308.40
5.1.20.0070.0288.43
5.1.10.0050.0288.14
5.1.00.0040.0388.14
5.0.50.0040.0286.62
5.0.40.0040.0216.48
5.0.30.0040.0316.29
5.0.20.0030.0206.27
5.0.10.0030.0216.25
5.0.00.0040.0336.23
4.4.90.0020.0194.78
4.4.80.0050.0154.76
4.4.70.0030.0164.75
4.4.60.0040.0154.76
4.4.50.0050.0184.77
4.4.40.0040.0274.71
4.4.30.0030.0164.76
4.4.20.0030.0174.85
4.4.10.0030.0164.85
4.4.00.0060.0214.75
4.3.110.0010.0174.67
4.3.100.0010.0164.66
4.3.90.0040.0154.64
4.3.80.0030.0264.58
4.3.70.0030.0194.63
4.3.60.0050.0134.63
4.3.50.0030.0154.62
4.3.40.0030.0284.53
4.3.30.0050.0173.29
4.3.20.0050.0173.27
4.3.10.0030.0153.22
4.3.00.0070.0177.21

preferences:
143.23 ms | 1394 KiB | 7 Q