1--TEST-- 2Passing a dimension fetch on a temporary by reference is not allowed 3--FILE-- 4<?php 5 6$fn = function(&$ref) {}; 7$fn([0, 1][0]); 8 9?> 10--EXPECTF-- 11Fatal error: Uncaught Error: Cannot use temporary expression in write context in %s:%d 12Stack trace: 13#0 {main} 14 thrown in %s on line %d 15