3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=10;$b=20; ($a,$b)=[$b,$a]; echo $a; ?>
Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.16, 7.0.0 - 7.0.1
Parse error: syntax error, unexpected ',' in /in/WXCFM on line 4
Process exited with code 255.

preferences:
191.91 ms | 1400 KiB | 25 Q