\[ g(x) y'(x)+h(y(x)) y'(x)^2+y''(x)=0 \] ✓ Mathematica : cpu = 0.0523782 (sec), leaf count = 61
\[\left \{\left \{y(x)\to \text {InverseFunction}\left [\int _1^{\text {$\#$1}}\exp \left (-\int _1^{K[4]}-h(K[1])dK[1]\right )dK[4]\& \right ]\left [\int _1^x-\exp \left (-\int _1^{K[5]}g(K[2])dK[2]\right ) c_1dK[5]+c_2\right ]\right \}\right \}\] ✓ Maple : cpu = 0.026 (sec), leaf count = 29
\[ \left \{ \int ^{y \left ( x \right ) }\!{{\rm e}^{\int \!h \left ( {\it \_b} \right ) \,{\rm d}{\it \_b}}}{d{\it \_b}}-{\it \_C1}\,\int \!{{\rm e}^{-\int \!g \left ( x \right ) \,{\rm d}x}}\,{\rm d}x-{\it \_C2}=0 \right \} \]