3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = [0, 1, 2]; echo (string)$a;
Output for 5.4.10 - 7.2.0
Notice: Array to string conversion in /in/4GRAv on line 4 Array
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/4GRAv on line 3
Process exited with code 255.