3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(); $a[] = 1; $a[] = 2; $a[] = 3; $a = array_values(unset($a[1])); var_dump($a);
Output for 5.4.0 - 5.4.16
Parse error: syntax error, unexpected 'unset' (T_UNSET), expecting ')' in /in/56i2q on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.24, 5.3.26
Parse error: syntax error, unexpected T_UNSET, expecting ')' in /in/56i2q on line 6
Process exited with code 255.
Output for 5.3.25
Parse error: syntax error, unexpected T_UNSET, expecting ')' in /in/gnAWj on line 6
Process exited with code 255.