3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array(0 => 'blue', 1 => 'red', 2 => 'green', 3 => 'red', 5 => 'green'); unset(array[2]); print_r($array);
Output for 5.4.0 - 5.4.13
Parse error: syntax error, unexpected 'array' (T_ARRAY) in /in/UW0v4 on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.23
Parse error: syntax error, unexpected T_ARRAY in /in/UW0v4 on line 3
Process exited with code 255.