3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php list($x[], $x[], $x[]) = ['azul', 'amarelo', 'vermelho', 'verde']; echo $x[0].'-'.$x[1].'-'.$x[2];
based on r5t7G
Output for 7.0.0 - 7.2.0
azul-amarelo-vermelho
Output for 5.4.0 - 5.6.28
vermelho-amarelo-azul
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/8mauk on line 3
Process exited with code 255.