3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump((int)['a', 'b'], (int)[]);
based on 86k5b
Output for 5.4.10 - 7.2.0
int(1) int(0)
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/oHIiv on line 3
Process exited with code 255.