3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a=10;$b=20; [$a,$a]=[$b,$a]; echo $a; ?>
based on WXCFM
Output for 7.1.0
10
Output for 5.4.10 - 7.0.1
Parse error: syntax error, unexpected '=' in /in/8RoqF on line 4
Process exited with code 255.
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/8RoqF on line 4
Process exited with code 255.