3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = Array ( ['abc'] => Array ( 2 => 2, 3 => 3, 5 => 5 ) ) $b = array_values($a['abc']); print_r($b);
Output for 5.4.0 - 5.4.22
Parse error: syntax error, unexpected '$b' (T_VARIABLE) in /in/I8iiu on line 12
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected '[', expecting ')' in /in/I8iiu on line 4
Process exited with code 255.