3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = ['a' => 1, 'b' => 2]; echo array_values($a);
based on Sr6ZV
Output for 5.4.0 - 7.2.0
Notice: Array to string conversion in /in/kgVFC on line 4 Array
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/kgVFC on line 2
Process exited with code 255.