3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $data = [ (obj) ['NO_INSPECTION' => 47, 'ID_CONDITION' => 1, 'NAMA_CONDITION' => 'DIRTY', ], (obj) ['NO_INSPECTION' => 47, 'ID_CONDITION' => 2, 'NAMA_CONDITION' => 'DAMAGE', ], (obj) ['NO_INSPECTION' => null, 'ID_CONDITION' => null, 'NAMA_CONDITION' => 'CLEAN', ], (obj) ['NO_INSPECTION' => null, 'ID_CONDITION' => null, 'NAMA_CONDITION' => 'OFF HIRE', ], ]; list($odd, $even) = array_chunk($header_item, 2); var_dump($odd, $even);
Output for 7.0.0 - 7.0.1
Parse error: syntax error, unexpected '=>' (T_DOUBLE_ARROW), expecting ']' in /in/AAIAS on line 4
Process exited with code 255.
Output for 5.4.11 - 5.6.16
Parse error: syntax error, unexpected '[', expecting ']' in /in/AAIAS on line 4
Process exited with code 255.
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/AAIAS on line 3
Process exited with code 255.