3v4l.org

run code in 300+ PHP versions simultaneously
<?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['ageing_data'] as $row) { print_r($row['highlight']) print_r(implode('',array_slice($row, 1))); }
Output for 5.4.0 - 5.4.29
Parse error: syntax error, unexpected 'print_r' (T_STRING) in /in/Uqjfp on line 44
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING in /in/Uqjfp on line 44
Process exited with code 255.

preferences:
182.85 ms | 1395 KiB | 66 Q