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; function verarbeiteFrage ($nummer, $frage, $text) { preg_match( $musterAntwortmöglichkeiten , $text, $antwortmöglichkeiten ); preg_match( $musterAntwort , $text, $antwort ); return array( 'frageNummer' => $nummer, 'frage' => $frage, 'antwortmöglichkeiten' => $antwortmöglichkeiten, 'antwort' => $antwort ); } // Reguläre Ausdrücke $musterFragen = '/^(?<frageNum>\d+\.)(.+?)(?=A\.)/ms'; $musterAntwortmöglichkeiten = '((?:^[A-Z]\..+?)(?=^[A-Z]\.|Answer: ))/ms'; $musterAntwort = '/^(Answer: .+)$/m'; // Verarbeite Eingabetext $fragen = array(); $suchergebnisse = preg_split($musterFragen, 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 grslK
Output for 7.0.20, 7.1.5 - 7.2.0
Notice: Undefined variable: musterAntwortmöglichkeiten in /in/Xgml2 on line 33 Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 35 Notice: Undefined variable: musterAntwort in /in/Xgml2 on line 39 Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 41 Notice: Undefined variable: musterAntwortmöglichkeiten in /in/Xgml2 on line 33 Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 35 Notice: Undefined variable: musterAntwort in /in/Xgml2 on line 39 Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 41 Notice: Undefined variable: musterAntwortmöglichkeiten in /in/Xgml2 on line 33 Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 35 Notice: Undefined variable: musterAntwort in /in/Xgml2 on line 39 Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 41 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"]=> NULL } [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"]=> NULL } [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"]=> NULL } }
Output for 7.0.0 - 7.0.6, 7.1.0
Notice: Undefined variable: musterAntwortmöglichkeiten in /in/Xgml2 on line 32 Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 32 Notice: Undefined variable: musterAntwort in /in/Xgml2 on line 38 Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 38 Notice: Undefined variable: musterAntwortmöglichkeiten in /in/Xgml2 on line 32 Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 32 Notice: Undefined variable: musterAntwort in /in/Xgml2 on line 38 Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 38 Notice: Undefined variable: musterAntwortmöglichkeiten in /in/Xgml2 on line 32 Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 32 Notice: Undefined variable: musterAntwort in /in/Xgml2 on line 38 Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 38 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"]=> NULL } [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"]=> NULL } [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"]=> NULL } }
Output for 5.3.19 - 5.6.28
Notice: Undefined variable: musterAntwortmöglichkeiten in /in/Xgml2 on line 33 Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 36 Notice: Undefined variable: musterAntwort in /in/Xgml2 on line 39 Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 42 Notice: Undefined variable: musterAntwortmöglichkeiten in /in/Xgml2 on line 33 Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 36 Notice: Undefined variable: musterAntwort in /in/Xgml2 on line 39 Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 42 Notice: Undefined variable: musterAntwortmöglichkeiten in /in/Xgml2 on line 33 Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 36 Notice: Undefined variable: musterAntwort in /in/Xgml2 on line 39 Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 42 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"]=> NULL } [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"]=> NULL } [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"]=> NULL } }