3v4l.org

run code in 300+ PHP versions simultaneously
<?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.3.27, 5.4.0 - 5.4.17
Parse error: syntax error, unexpected ')', expecting ']' in /in/H9CC4 on line 8
Process exited with code 255.

preferences:
193.65 ms | 1395 KiB | 53 Q