3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $list = [1,2,3,4,5]; $result = $list[] = 6; echo $result;
Output for 5.4.0 - 7.2.0
6
Output for 5.3.18 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/uhegs on line 3
Process exited with code 255.