3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = array(111,112,113,114,115); $delValue = 115; // using a “diff” comparison: $array = array_values(array_diff($arr, [$delValue])); // 115 removed var_dump($array);// [0]=> int(111), [1]=> int(112), [2]=> int(114), [3]=>int(115) }
Output for 5.4.0 - 5.4.13
Parse error: syntax error, unexpected '}' in /in/vo4pG on line 11
Process exited with code 255.
Output for 5.3.0 - 5.3.23
Parse error: syntax error, unexpected '[' in /in/vo4pG on line 7
Process exited with code 255.