1--TEST-- 2SPL: spl_object_id() 3--FILE-- 4<?php 5 6var_dump(spl_object_id(new stdClass)); 7var_dump(spl_object_id(42)); 8var_dump(spl_object_id()); 9$a = new stdClass(); 10var_dump(spl_object_id(new stdClass) === spl_object_id($a)); 11 12?> 13--EXPECTF-- 14int(%d) 15 16Warning: spl_object_id() expects parameter 1 to be object, integer given in %sspl_object_id.php on line %d 17NULL 18 19Warning: spl_object_id() expects exactly 1 parameter, 0 given in %sspl_object_id.php on line %d 20NULL 21bool(false) 22