So I turned my mind to understand, to investigate and to search out wisdom and the scheme of things and to understand the stupidity of wickedness and the madness of folly.
NIV
I turned about [penitent] and my heart was set to know and to search out and to seek [true] wisdom and the reason of things, and to know that wickedness is folly and that foolishness is madness [and what had led me into such wickedness and madness].
AMP
I applied mine heart to know, and to search, and to seek out wisdom, and the reason of things, and to know the wickedness of folly, even of foolishness and madness:
KJV
For the wisdom of this world is foolishness in God's sight. As it is written: "He catches the wise in their craftiness";
NIV
For this world's wisdom is foolishness (absurdity and stupidity) with God, for it is written, He lays hold of the wise in their [own] craftiness; [Job 5:13.]AMP
For the wisdom of this world is foolishness with God. For it is written, He taketh the wise in their own craftiness.
KJV