3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array['ids'] = array( '0' => array( 'id' => 1, 'val' => 'one'), 'delete' => 3, '2' => array( 'id' => 2, 'val' => 'two'), '1' => array( 'id' => 3, 'val' => 'three')); print_r($array); unset($array['delete')); $array['ids'] = array_values($array['ids']); print_r($array);
Output for 5.3.0 - 5.4.17
Parse error: syntax error, unexpected ')', expecting ']' in /in/H9CC4 on line 8
Process exited with code 255.