3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $inputStr = <<<'EOT' 1.You install Microsoft Dynamics CRM on-premises. The Microsoft Dynamics CRM environment must have a Uniform Resource Locator (URL) that is different from the default URL for Microsoft Dynamics CRM. Which two actions should you perform? Each correct answer presents a complete solution. A.Before you install Microsoft Dynamics CRM. B.create a new Microsoft Dynamics CRM website. C.select the default server website.After the installation is. D.Install Microsoft Dynamics CRM and select. Answer: A, B 2.You are a system administrator for Microsoft Dynamics CRM Online. You need to provision a user. Which two steps should you perform? Each correct answer presents part of the solution. A.Add the user in the Microsoft Online Services Portal. B.Configure the user with Read access mode. C.Enable the user record in Microsoft Dynamics CRM Online. D.Assign a Microsoft Dynamics CRM Online license to the user. Answer: A, D Ref: http://technet.microsoft.com/en-us/library/jj191623(v=crm.6) 3.You install Microsoft Dynamics CRM on-premises. The installation fails and you receive an installation error. You need to access the installation log files to view the details about the error. What should you do? A.Query the Microsoft Dynamics CRM database and view the log table. B.View the installation log files in the folder <SystemDrive>\Program Files\Microsoft Dynamics CRM\Logs. C.View the installation log files in the folder <SysremDnVe>:\Users\<L/serno/ne>\AppData\Roaming\Microsoft\MSCRM\Logs. D.View the installation log files by opening the Event Viewer. Answer: C EOT; // Reguläre Ausdrücke const MUSTER_FRAGEN = '/^(?<frageNum>\d+\.)(.+?)(?=A\.)/ms'; const MUSTER_ANTWORTMÖGLICHKEITEN = '((?:^[A-Z]\..+?)(?=^[A-Z]\.|Answer: ))/ms'; const MUSTER_ANTWORT = '/^(Answer: .+)$/m'; function verarbeiteFrage ($nummer, $frage, $text) { preg_match( MUSTER_ANTWORTMÖGLICHKEITEN, $text, $antwortmoeglichkeiten ); preg_match( MUSTER_ANTWORT, $text, $antwort ); return array( 'frageNummer' => $nummer, 'frage' => $frage, 'antwortmöglichkeiten' => $antwortmöglichkeiten, 'antwort' => $antwort ); } // Verarbeite Eingabetext $fragen = array(); $suchergebnisse = preg_split(MUSTER_FRAGEN, trim($inputStr), NULL, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY); while (!empty($suchergebnisse)) { $frageNummer = array_shift($suchergebnisse); $frageText = array_shift($suchergebnisse); $antwortTextAbschnitt = array_shift($suchergebnisse); $fragen[] = verarbeiteFrage($frageNummer, $frageText, $antwortTextAbschnitt); } var_dump($fragen);
based on 9D9cU
Output for 7.0.20, 7.1.5 - 7.2.0
Warning: preg_match(): Unknown modifier '/' in /in/av9P0 on line 40 Notice: Undefined variable: antwortmöglichkeiten in /in/av9P0 on line 52 Warning: preg_match(): Unknown modifier '/' in /in/av9P0 on line 40 Notice: Undefined variable: antwortmöglichkeiten in /in/av9P0 on line 52 Warning: preg_match(): Unknown modifier '/' in /in/av9P0 on line 40 Notice: Undefined variable: antwortmöglichkeiten in /in/av9P0 on line 52 array(3) { [0]=> array(4) { ["frageNummer"]=> string(2) "1." ["frage"]=> string(285) "You install Microsoft Dynamics CRM on-premises. The Microsoft Dynamics CRM environment must have a Uniform Resource Locator (URL) that is different from the default URL for Microsoft Dynamics CRM. Which two actions should you perform? Each correct answer presents a complete solution. " ["antwortmöglichkeiten"]=> NULL ["antwort"]=> array(2) { [0]=> string(12) "Answer: A, B" [1]=> string(12) "Answer: A, B" } } [1]=> array(4) { ["frageNummer"]=> string(2) "2." ["frage"]=> string(183) "You are a system administrator for Microsoft Dynamics CRM Online. You need to provision a user. Which two steps should you perform? Each correct answer presents part of the solution. " ["antwortmöglichkeiten"]=> NULL ["antwort"]=> array(2) { [0]=> string(12) "Answer: A, D" [1]=> string(12) "Answer: A, D" } } [2]=> array(4) { ["frageNummer"]=> string(2) "3." ["frage"]=> string(213) "You install Microsoft Dynamics CRM on-premises. The installation fails and you receive an installation error. You need to access the installation log files to view the details about the error. What should you do? " ["antwortmöglichkeiten"]=> NULL ["antwort"]=> array(2) { [0]=> string(9) "Answer: C" [1]=> string(9) "Answer: C" } } }
Output for 7.0.0 - 7.0.6, 7.1.0
Warning: preg_match(): Unknown modifier '/' in /in/av9P0 on line 38 Notice: Undefined variable: antwortmöglichkeiten in /in/av9P0 on line 52 Warning: preg_match(): Unknown modifier '/' in /in/av9P0 on line 38 Notice: Undefined variable: antwortmöglichkeiten in /in/av9P0 on line 52 Warning: preg_match(): Unknown modifier '/' in /in/av9P0 on line 38 Notice: Undefined variable: antwortmöglichkeiten in /in/av9P0 on line 52 array(3) { [0]=> array(4) { ["frageNummer"]=> string(2) "1." ["frage"]=> string(285) "You install Microsoft Dynamics CRM on-premises. The Microsoft Dynamics CRM environment must have a Uniform Resource Locator (URL) that is different from the default URL for Microsoft Dynamics CRM. Which two actions should you perform? Each correct answer presents a complete solution. " ["antwortmöglichkeiten"]=> NULL ["antwort"]=> array(2) { [0]=> string(12) "Answer: A, B" [1]=> string(12) "Answer: A, B" } } [1]=> array(4) { ["frageNummer"]=> string(2) "2." ["frage"]=> string(183) "You are a system administrator for Microsoft Dynamics CRM Online. You need to provision a user. Which two steps should you perform? Each correct answer presents part of the solution. " ["antwortmöglichkeiten"]=> NULL ["antwort"]=> array(2) { [0]=> string(12) "Answer: A, D" [1]=> string(12) "Answer: A, D" } } [2]=> array(4) { ["frageNummer"]=> string(2) "3." ["frage"]=> string(213) "You install Microsoft Dynamics CRM on-premises. The installation fails and you receive an installation error. You need to access the installation log files to view the details about the error. What should you do? " ["antwortmöglichkeiten"]=> NULL ["antwort"]=> array(2) { [0]=> string(9) "Answer: C" [1]=> string(9) "Answer: C" } } }
Output for 5.3.19 - 5.6.28
Warning: preg_match(): Unknown modifier '/' in /in/av9P0 on line 41 Notice: Undefined variable: antwortmöglichkeiten in /in/av9P0 on line 52 Warning: preg_match(): Unknown modifier '/' in /in/av9P0 on line 41 Notice: Undefined variable: antwortmöglichkeiten in /in/av9P0 on line 52 Warning: preg_match(): Unknown modifier '/' in /in/av9P0 on line 41 Notice: Undefined variable: antwortmöglichkeiten in /in/av9P0 on line 52 array(3) { [0]=> array(4) { ["frageNummer"]=> string(2) "1." ["frage"]=> string(285) "You install Microsoft Dynamics CRM on-premises. The Microsoft Dynamics CRM environment must have a Uniform Resource Locator (URL) that is different from the default URL for Microsoft Dynamics CRM. Which two actions should you perform? Each correct answer presents a complete solution. " ["antwortmöglichkeiten"]=> NULL ["antwort"]=> array(2) { [0]=> string(12) "Answer: A, B" [1]=> string(12) "Answer: A, B" } } [1]=> array(4) { ["frageNummer"]=> string(2) "2." ["frage"]=> string(183) "You are a system administrator for Microsoft Dynamics CRM Online. You need to provision a user. Which two steps should you perform? Each correct answer presents part of the solution. " ["antwortmöglichkeiten"]=> NULL ["antwort"]=> array(2) { [0]=> string(12) "Answer: A, D" [1]=> string(12) "Answer: A, D" } } [2]=> array(4) { ["frageNummer"]=> string(2) "3." ["frage"]=> string(213) "You install Microsoft Dynamics CRM on-premises. The installation fails and you receive an installation error. You need to access the installation log files to view the details about the error. What should you do? " ["antwortmöglichkeiten"]=> NULL ["antwort"]=> array(2) { [0]=> string(9) "Answer: C" [1]=> string(9) "Answer: C" } } }