سرعت بیشتر با get_magic_quotes_runtime و get_magic_quotes_gpc برای گرفتن مقدار Magic quotes:
if (get_magic_quotes_gpc() || get_magic_quotes_runtime()) { #... } 0.0123500823970 0.0124192237854 0.0124502182007 0.0128602981567 0.0129485130310 0.0129580497742 0.0129580497742 0.0129890441895 0.0129985809326 0.0130105018616 0.0130105018616 0.0130200386047 0.0130295753479 0.0130391120911 0.0141811370850
سرعت کمتر با ini_get برای گرفتن مقدار Magic quotes:
if (ini_get('magic_quotes_gpc') || ini_get('magic_quotes_runtime')) { #... } 0.0201392173767 0.0201511383057 0.0201606750488 0.0201988220215 0.0202012062073 0.0202107429504 0.0202202796936 0.0202417373657 0.0202584266663 0.0203299522400 0.0219893455505 0.0220894813538 0.0238800048828 0.0250506401062 0.0255298614502
x64 Hardware
32bit OS
PHP 5.5 CLI