3v4l.org

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