3v4l.org

run code in 300+ PHP versions simultaneously
<?php list($first, $second, $third) = ['first value', 'second value', 'third value']; //Same functionality as above provided for this: {$first, $second, $third} = ['first value', 'second value', 'third value'];
Output for 7.1.0 - 7.1.16, 7.2.0 - 7.2.4
Parse error: syntax error, unexpected ',' in /in/B8k4R on line 7
Process exited with code 255.

preferences:
179.28 ms | 1000 KiB | 7 Q