3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array('9002209000'=>22.58, '3915909000'=>21.35, '8512302000'=>20.06, '7207190000'=>19.79, '6306120000'=>18.17, '5513130000'=>17.74, '7208400000'=>17.57, '7210492000'=>17.17, '0904209000'=>16.99, '7318131000'=>16.96, '1901904900'=>16.83, '9028101000'=>16.75, '7218910000'=>16.71, '7606919000'=>16.49, '8708999200'=>16.45, '5208430000'=>15.83, '4811101000'=>15.20, '6214300090'=>15.04, '7224900000'=>14.85, '6815101000'=>14.84, '4802549010'=>14.83, '3004909100'=>14.63, '3907601000'=>14.61, '8424811000'=>14.38, '8425421000'=>13.69, '9017109000'=>13.66, '4016993000'=>13.63, '8436101000'=>13.46, '8409996400'=>13.43, '4202919000'=>13.39, '7214102100'=>13.39, '9018902000'=>13.38, '8473401900'=>13.00, '8708959000'=>12.93, '4805500000'=>12.81, '8507801900'=>12.81, '8402901000'=>12.80, '7604101000'=>12.76, '3922901900'=>12.49, '8529909400'=>12.33, '5212130000'=>12.16, '6406992900'=>12.14, '8463101000'=>12.05, '7215900010'=>12.04, '6108290000'=>12.04, '8477803900'=>12.02, '8419601000'=>12.01, '3920949000'=>11.96, '4009329000'=>11.96, '3923301000'=>11.92, '5501200000'=>11.91, '5210320000'=>11.87, '2806100000'=>11.87, '8711204100'=>11.87, '4804311000'=>11.86, '2807000000'=>11.84, '4810399000'=>11.73, '8456100000'=>11.72, '8442401000'=>11.71, '6406991900'=>11.66, '5407830000'=>11.57, '3105200000'=>11.53, '7009910000'=>11.51, '3104200000'=>11.49, '8433200000'=>11.47, '8714921000'=>11.40, '9503002200'=>11.39, '7606110090'=>11.36, '8424201900'=>11.36, '6301900090'=>11.33, '8529905300'=>11.31, '2827590000'=>11.21, '8001200000'=>11.21, '7214300000'=>11.16, '6006319000'=>11.11, '7219140000'=>11.07, '7616994000'=>11.06, '8529104000'=>11.05, '4818100000'=>11.00, '8422901000'=>10.83, '8704234900'=>10.76, '4819600000'=>10.75, '9032202000'=>10.73, '8409917200'=>10.73, '6006330000'=>10.73, '7016100000'=>10.72, '6914900000'=>10.72, '8607300000'=>10.70, '1702500000'=>10.68, '2911000000'=>10.67, '7225990000'=>10.59, '6216009900'=>10.59, '8528591000'=>10.48, '6403400000'=>10.42, '7409400000'=>10.40, '8445201000'=>10.34, '4012908000'=>10.29, '9401901090'=>10.28 ); echo "<pre>"; $b = array_slice($a, 0, 20); print_r($b); echo "</pre>";
Output for 4.3.0 - 7.1.0
<pre>Array ( [0] => 22.58 [1] => 21.35 [2] => 20.06 [3] => 19.79 [4] => 18.17 [5] => 17.74 [6] => 17.57 [7] => 17.17 [0904209000] => 16.99 [8] => 16.96 [9] => 16.83 [10] => 16.75 [11] => 16.71 [12] => 16.49 [13] => 16.45 [14] => 15.83 [15] => 15.2 [16] => 15.04 [17] => 14.85 [18] => 14.84 ) </pre>