by default php having 156 classes and 2590 method function. dont believe try yourself. <?php echo "<pre>"; //print_r(get_declared_classes()); $c=count(get_declared_classes()); $array=get_declared_classes(); $m=0;$clas="0"; foreach ($array as $key ) { echo $key; $clas++; echo "=>"; $arr=get_class_methods($key); foreach ($arr as $ke) { $m++; echo $ke." , "; } echo "<br/><br/><br/>"; } echo $m; echo "<br/>"; echo $clas; output:- stdClass=> Exception=>__construct , getMessage , getCode , getFile , getLine , getTrace , getPrevious , getTraceAsString , __toString , ErrorException=>__construct , getSeverity , getMessage , getCode , getFile , getLine , getTrace , getPrevious , getTraceAsString , __toString , Closure=>bind , bindTo , Generator=>rewind , valid , curren...