- Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.7
- Parse error: syntax error, unexpected '=>' (T_DOUBLE_ARROW) in /in/7OFVv on line 4
Process exited with code 255.
<?php
$arr = [(new stdClass), new stdClass, new stdClass];
$arr[0]=>text = "ans1";
$arr[1]=>text = "ans2";
$arr[2]=>text = "ans3";
$nu = [arr[0].text,arr[1].text,arr[2].text];
var_dump($nu);