3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array[] = array ( 'age' => 'Lower limit', 'shipments' => null, 'orders' => null, 'ifs' => null, 'items' => 2, 'highlight' => false ); $array[] = array ( 'age' => 'Upper limit', 'shipments' => null, 'orders' => null, 'ifs' => null, 'items' =>3, 'highlight' => false ); $array[] = array ( 'age' => 'Limits:', 'shipments' => null, 'orders' => null, 'ifs' => null, 'items' => null, 'highlight' => 1 ); $array[] = array ( 'age' => 'Freeze limit', 'shipments' => null, 'orders' => null, 'ifs' => null, 'items' => 1, 'highlight' => false ); $array2 = array ( 'ageing_data' => $array, ); foreach ($array2 as $row) { print_r(implode('',array_slice($row), 1)); }
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Warning: array_slice() expects at least 2 parameters, 1 given in /in/SoPfE on line 43 Warning: implode() expects at most 2 parameters, 3 given in /in/SoPfE on line 43
Output for 5.2.6 - 5.2.17
Warning: array_slice() expects at least 2 parameters, 1 given in /in/SoPfE on line 43 Warning: Wrong parameter count for implode() in /in/SoPfE on line 43
Output for 4.3.0 - 5.2.5
Warning: Wrong parameter count for array_slice() in /in/SoPfE on line 43 Warning: Wrong parameter count for implode() in /in/SoPfE on line 43