- var_dump: documentation ( source)
<?php
class caster implements ArrayAccess{
function offsetGet($o){
}
function offsetSet($a, $b){
}
function offsetUnset($a){
}
function offsetExists($a){
}
}
function c(){ return new caster; }
$fac = c()[1] = 10 + 10;
var_dump($fac);