<?php // Closure //echo (function(){})[0] ?? "error"; // object (not ArrayAccess) //echo (new stdClass())[0] ?? "error"; // integer echo (0)[0] ?? 'ok'; // float echo (0.0)[0] ?? 'ok'; // null echo (null)[0] ?? 'ok'; // bool echo (true)[0] ?? 'ok'; // void echo ((function (){})())[0] ?? 'ok'; // resource echo (tmpfile())[0] ?? 'ok';
You have javascript disabled. You will not be able to edit any code.