3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = get_magic_quotes_gpc(); $b = ini_get("magic_quotes_gpc"); var_dump($a); var_dump($b); echo "1) ".get_magic_quotes_gpc()." >> "; echo "2) ".ini_get("magic_quotes_gpc")." >> "; set_magic_quotes_runtime(true); echo "1) ".get_magic_quotes_runtime()." >> "; echo "2) ".ini_get("magic_quotes_runtime")." >> "; $str = "'\""; $arr = array(); $arr[] = "string : ".$str; $arr[] = "addslashes : ".addslashes($str); $arr[] = "stripslashes : ".stripslashes($str); $arr[] = "htmlentities : ".htmlentities($str); $arr[] = "testing : '".$str."'"; print_r($arr);

preferences:
39.12 ms | 402 KiB | 5 Q