3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $txt = "resultCode:NoOp errorMessage:null processMessage:2014-08-08 02:18:01:659 INFO begin appName=ixp_app appVersion=2012_11_v01 integrationCode= clientId=999999 userName=autosuggest1 docId=12963337 docType=RFQ recipientId=58992 encodingTypeCode=UTF-8 2014-08-08 02:18:01:659 DEBUG Opening connection to the database 2014-08-08 02:18:01:660 DEBUG Validating client's account 2014-08-08 02:18:01:668 DEBUG Reading original document details from database 2014-08-08 02:18:01:668 DEBUG Reading Header from Database 2014-08-08 02:18:01:671 DEBUG Reading Line Items from Database 2014-08-08 02:18:01:673 DEBUG Reading Party Contacts from Database 2014-08-08 02:18:01:675 DEBUG Constructing Interchange 2014-08-08 02:18:01:675 DEBUG Constructing Request For Quote 2014-08-08 02:18:01:678 DEBUG Constructing Dates 2014-08-08 02:18:01:678 DEBUG Constructing References 2014-08-08 02:18:01:678 DEBUG Constructing Comments 2014-08-08 02:18:01:679 DEBUG Constructing Parties 2014-08-08 02:18:01:679 DEBUG Constructing Line Items 2014-08-08 02:18:01:680 DEBUG Saving original document content to file - raw 2014-08-08 02:18:01:705 INFO Found 1 possible RFQ matches with a Reference No.: 14/440 that was forwarded by Match Buyer 11107 to Supplier 58992 2014-08-08 02:18:01:705 INFO RFQ with Internal Ref No.: 12884046 2014-08-08 02:18:01:706 INFO RFQ 12963337 will now be compared with the list of possible RFQ matches 2014-08-08 02:18:01:706 INFO Comparing RFQ 12963337 with RFQ 12884046 2014-08-08 02:18:01:706 DEBUG Reading Header from Database 2014-08-08 02:18:01:708 DEBUG Reading Line Items from Database 2014-08-08 02:18:01:720 DEBUG Reading Party Contacts from Database 2014-08-08 02:18:01:727 DEBUG Constructing Interchange 2014-08-08 02:18:01:728 DEBUG Constructing Request For Quote 2014-08-08 02:18:01:730 DEBUG Constructing Dates 2014-08-08 02:18:01:730 DEBUG Constructing References 2014-08-08 02:18:01:731 DEBUG Constructing Comments 2014-08-08 02:18:01:731 DEBUG Constructing Parties 2014-08-08 02:18:01:732 DEBUG Constructing Line Items 2014-08-08 02:18:01:733 DEBUG Doc Changed on //Interchange/RequestForQuote/LineItem/@Description 2014-08-08 02:18:01:733 DEBUG Electric motor, Vertical mounted, Type- 4AP 71-45, 3phase, 440 Volts, 60 Hz, 0.29 KW, 0.8 Amp & 1656 RPM, Fan Motor, 3-phase, 440Volts, 0.8 Amp, 60 Hz, 0.29KW & RPM-1656 not equal to 2/2 way solenoid valve- servo assisted for emergency fire pump, Maker: Burkert, Details: 5281 A 13.0 NBR, MS, G 1/2, PNO 0.2 - 16 bar, 230 V, 50-60 Hz8 W, G 1/2, PNO 0.2-16 Bar 2014-08-08 02:18:01:733 DEBUG Committing database transaction 2014-08-08 02:18:01:733 DEBUG Closing connection to the database 2014-08-08 02:18:01:734 INFO end status=NOOP filename=999999_20140808021801_f90e96c9 elapsed=74ms fileContents:null "; $lines = explode(PHP_EOL, $txt); $messages = array(); foreach ($lines as $line) { print $line . PHP_EOL . '---------' . PHP_EOL; // regexp is 'timestamp debug_level message' if (!preg_match('/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}:\d{3} \w+ (.*)$/', $line, $matches)) { // top lines with no timestamp, safe to skip them continue; } $message = $matches[1]; // now filter by the first word of the message if (!preg_match('/^(.*) .*$/', $message, $words)) { // no first word means only one word, skip it continue; } $word = $words[1]; print $word . PHP_EOL; if (in_array($word, array( 'opening', 'validating', 'reading', 'constructing', 'saving', 'found', 'rfq', 'comparing', 'committing', 'closing', 'end' ))) { // skip know technical message continue; } $messages[] = $message; } print_r($messages);
based on Ail6B
Output for 5.3.0 - 7.1.0
resultCode:NoOp --------- Notice: Undefined offset: 1 in /in/9FZUP on line 63 errorMessage:null --------- Notice: Undefined offset: 1 in /in/9FZUP on line 63 processMessage:2014-08-08 02:18:01:659 INFO begin appName=ixp_app --------- Notice: Undefined offset: 1 in /in/9FZUP on line 63 appVersion=2012_11_v01 integrationCode= clientId=999999 userName=autosuggest1 --------- Notice: Undefined offset: 1 in /in/9FZUP on line 63 docId=12963337 docType=RFQ recipientId=58992 encodingTypeCode=UTF-8 --------- Notice: Undefined offset: 1 in /in/9FZUP on line 63 2014-08-08 02:18:01:659 DEBUG Opening connection to the database --------- Opening connection to the 2014-08-08 02:18:01:660 DEBUG Validating client's account --------- Validating client's 2014-08-08 02:18:01:668 DEBUG Reading original document details from database --------- Reading original document details from 2014-08-08 02:18:01:668 DEBUG Reading Header from Database --------- Reading Header from 2014-08-08 02:18:01:671 DEBUG Reading Line Items from Database --------- Reading Line Items from 2014-08-08 02:18:01:673 DEBUG Reading Party Contacts from Database --------- Reading Party Contacts from 2014-08-08 02:18:01:675 DEBUG Constructing Interchange --------- Constructing 2014-08-08 02:18:01:675 DEBUG Constructing Request For Quote --------- Constructing Request For 2014-08-08 02:18:01:678 DEBUG Constructing Dates --------- Constructing 2014-08-08 02:18:01:678 DEBUG Constructing References --------- Constructing 2014-08-08 02:18:01:678 DEBUG Constructing Comments --------- Constructing 2014-08-08 02:18:01:679 DEBUG Constructing Parties --------- Constructing 2014-08-08 02:18:01:679 DEBUG Constructing Line Items --------- Constructing Line 2014-08-08 02:18:01:680 DEBUG Saving original document content to file - raw --------- Saving original document content to file - 2014-08-08 02:18:01:705 INFO Found 1 possible RFQ matches with a Reference No.: --------- Found 1 possible RFQ matches with a Reference 14/440 that was forwarded by Match Buyer 11107 to Supplier 58992 --------- Notice: Undefined offset: 1 in /in/9FZUP on line 63 2014-08-08 02:18:01:705 INFO RFQ with Internal Ref No.: 12884046 --------- RFQ with Internal Ref No.: 2014-08-08 02:18:01:706 INFO RFQ 12963337 will now be compared with the list of --------- RFQ 12963337 will now be compared with the list possible RFQ matches --------- Notice: Undefined offset: 1 in /in/9FZUP on line 63 2014-08-08 02:18:01:706 INFO Comparing RFQ 12963337 with RFQ 12884046 --------- Comparing RFQ 12963337 with RFQ 2014-08-08 02:18:01:706 DEBUG Reading Header from Database --------- Reading Header from 2014-08-08 02:18:01:708 DEBUG Reading Line Items from Database --------- Reading Line Items from 2014-08-08 02:18:01:720 DEBUG Reading Party Contacts from Database --------- Reading Party Contacts from 2014-08-08 02:18:01:727 DEBUG Constructing Interchange --------- Constructing 2014-08-08 02:18:01:728 DEBUG Constructing Request For Quote --------- Constructing Request For 2014-08-08 02:18:01:730 DEBUG Constructing Dates --------- Constructing 2014-08-08 02:18:01:730 DEBUG Constructing References --------- Constructing 2014-08-08 02:18:01:731 DEBUG Constructing Comments --------- Constructing 2014-08-08 02:18:01:731 DEBUG Constructing Parties --------- Constructing 2014-08-08 02:18:01:732 DEBUG Constructing Line Items --------- Constructing Line 2014-08-08 02:18:01:733 DEBUG Doc Changed on --------- Doc Changed //Interchange/RequestForQuote/LineItem/@Description --------- Notice: Undefined offset: 1 in /in/9FZUP on line 63 2014-08-08 02:18:01:733 DEBUG Electric motor, Vertical mounted, Type- 4AP --------- Electric motor, Vertical mounted, Type- 71-45, 3phase, 440 Volts, 60 Hz, 0.29 KW, 0.8 Amp & 1656 RPM, Fan Motor, --------- Notice: Undefined offset: 1 in /in/9FZUP on line 63 3-phase, 440Volts, 0.8 Amp, 60 Hz, 0.29KW & RPM-1656 not equal to 2/2 way --------- Notice: Undefined offset: 1 in /in/9FZUP on line 63 solenoid valve- servo assisted for emergency fire pump, Maker: Burkert, Details: --------- Notice: Undefined offset: 1 in /in/9FZUP on line 63 5281 A 13.0 NBR, MS, G 1/2, PNO 0.2 - 16 bar, 230 V, 50-60 Hz8 W, G 1/2, PNO --------- Notice: Undefined offset: 1 in /in/9FZUP on line 63 0.2-16 Bar --------- Notice: Undefined offset: 1 in /in/9FZUP on line 63 2014-08-08 02:18:01:733 DEBUG Committing database transaction --------- Committing database 2014-08-08 02:18:01:733 DEBUG Closing connection to the database --------- Closing connection to the 2014-08-08 02:18:01:734 INFO end status=NOOP --------- end filename=999999_20140808021801_f90e96c9 elapsed=74ms --------- Notice: Undefined offset: 1 in /in/9FZUP on line 63 --------- Notice: Undefined offset: 1 in /in/9FZUP on line 63 --------- Notice: Undefined offset: 1 in /in/9FZUP on line 63 fileContents:null --------- Notice: Undefined offset: 1 in /in/9FZUP on line 63 --------- Notice: Undefined offset: 1 in /in/9FZUP on line 63 Array ( [0] => Opening connection to the database [1] => Validating client's account [2] => Reading original document details from database [3] => Reading Header from Database [4] => Reading Line Items from Database [5] => Reading Party Contacts from Database [6] => Constructing Interchange [7] => Constructing Request For Quote [8] => Constructing Dates [9] => Constructing References [10] => Constructing Comments [11] => Constructing Parties [12] => Constructing Line Items [13] => Saving original document content to file - raw [14] => Found 1 possible RFQ matches with a Reference No.: [15] => RFQ with Internal Ref No.: 12884046 [16] => RFQ 12963337 will now be compared with the list of [17] => Comparing RFQ 12963337 with RFQ 12884046 [18] => Reading Header from Database [19] => Reading Line Items from Database [20] => Reading Party Contacts from Database [21] => Constructing Interchange [22] => Constructing Request For Quote [23] => Constructing Dates [24] => Constructing References [25] => Constructing Comments [26] => Constructing Parties [27] => Constructing Line Items [28] => Doc Changed on [29] => Electric motor, Vertical mounted, Type- 4AP [30] => Committing database transaction [31] => Closing connection to the database )
Output for 4.3.10 - 4.4.9, 5.0.2 - 5.2.17
resultCode:NoOp --------- Notice: Undefined offset: 1 in /in/9FZUP on line 63 errorMessage:null --------- Notice: Undefined offset: 1 in /in/9FZUP on line 63 processMessage:2014-08-08 02:18:01:659 INFO begin appName=ixp_app --------- Notice: Undefined offset: 1 in /in/9FZUP on line 63 appVersion=2012_11_v01 integrationCode= clientId=999999 userName=autosuggest1 --------- Notice: Undefined offset: 1 in /in/9FZUP on line 63 docId=12963337 docType=RFQ recipientId=58992 encodingTypeCode=UTF-8 --------- Notice: Undefined offset: 1 in /in/9FZUP on line 63 2014-08-08 02:18:01:659 DEBUG Opening connection to the database --------- Opening connection to the 2014-08-08 02:18:01:660 DEBUG Validating client's account --------- Validating client's 2014-08-08 02:18:01:668 DEBUG Reading original document details from database --------- Reading original document details from 2014-08-08 02:18:01:668 DEBUG Reading Header from Database --------- Reading Header from 2014-08-08 02:18:01:671 DEBUG Reading Line Items from Database --------- Reading Line Items from 2014-08-08 02:18:01:673 DEBUG Reading Party Contacts from Database --------- Reading Party Contacts from 2014-08-08 02:18:01:675 DEBUG Constructing Interchange --------- Constructing 2014-08-08 02:18:01:675 DEBUG Constructing Request For Quote --------- Constructing Request For 2014-08-08 02:18:01:678 DEBUG Constructing Dates --------- Constructing 2014-08-08 02:18:01:678 DEBUG Constructing References --------- Constructing 2014-08-08 02:18:01:678 DEBUG Constructing Comments --------- Constructing 2014-08-08 02:18:01:679 DEBUG Constructing Parties --------- Constructing 2014-08-08 02:18:01:679 DEBUG Constructing Line Items --------- Constructing Line 2014-08-08 02:18:01:680 DEBUG Saving original document content to file - raw --------- Saving original document content to file - 2014-08-08 02:18:01:705 INFO Found 1 possible RFQ matches with a Reference No.: --------- Found 1 possible RFQ matches with a Reference 14/440 that was forwarded by Match Buyer 11107 to Supplier 58992 --------- Notice: Undefined offset: 1 in /in/9FZUP on line 63 2014-08-08 02:18:01:705 INFO RFQ with Internal Ref No.: 12884046 --------- RFQ with Internal Ref No.: 2014-08-08 02:18:01:706 INFO RFQ 12963337 will now be compared with the list of --------- RFQ 12963337 will now be compared with the list possible RFQ matches --------- Notice: Undefined offset: 1 in /in/9FZUP on line 63 2014-08-08 02:18:01:706 INFO Comparing RFQ 12963337 with RFQ 12884046 --------- Comparing RFQ 12963337 with RFQ 2014-08-08 02:18:01:706 DEBUG Reading Header from Database --------- Reading Header from 2014-08-08 02:18:01:708 DEBUG Reading Line Items from Database --------- Reading Line Items from 2014-08-08 02:18:01:720 DEBUG Reading Party Contacts from Database --------- Reading Party Contacts from 2014-08-08 02:18:01:727 DEBUG Constructing Interchange --------- Constructing 2014-08-08 02:18:01:728 DEBUG Constructing Request For Quote --------- Constructing Request For 2014-08-08 02:18:01:730 DEBUG Constructing Dates --------- Constructing 2014-08-08 02:18:01:730 DEBUG Constructing References --------- Constructing 2014-08-08 02:18:01:731 DEBUG Constructing Comments --------- Constructing 2014-08-08 02:18:01:731 DEBUG Constructing Parties --------- Constructing 2014-08-08 02:18:01:732 DEBUG Constructing Line Items --------- Constructing Line 2014-08-08 02:18:01:733 DEBUG Doc Changed on --------- Doc Changed //Interchange/RequestForQuote/LineItem/@Description --------- Notice: Undefined offset: 1 in /in/9FZUP on line 63 2014-08-08 02:18:01:733 DEBUG Electric motor, Vertical mounted, Type- 4AP --------- Electric motor, Vertical mounted, Type- 71-45, 3phase, 440 Volts, 60 Hz, 0.29 KW, 0.8 Amp & 1656 RPM, Fan Motor, --------- Notice: Undefined offset: 1 in /in/9FZUP on line 63 3-phase, 440Volts, 0.8 Amp, 60 Hz, 0.29KW & RPM-1656 not equal to 2/2 way --------- Notice: Undefined offset: 1 in /in/9FZUP on line 63 solenoid valve- servo assisted for emergency fire pump, Maker: Burkert, Details: --------- Notice: Undefined offset: 1 in /in/9FZUP on line 63 5281 A 13.0 NBR, MS, G 1/2, PNO 0.2 - 16 bar, 230 V, 50-60 Hz8 W, G 1/2, PNO --------- Notice: Undefined offset: 1 in /in/9FZUP on line 63 0.2-16 Bar --------- Notice: Undefined offset: 1 in /in/9FZUP on line 63 2014-08-08 02:18:01:733 DEBUG Committing database transaction --------- Committing database 2014-08-08 02:18:01:733 DEBUG Closing connection to the database --------- Closing connection to the 2014-08-08 02:18:01:734 INFO end status=NOOP --------- end filename=999999_20140808021801_f90e96c9 elapsed=74ms --------- Notice: Undefined offset: 1 in /in/9FZUP on line 63 --------- Notice: Undefined offset: 1 in /in/9FZUP on line 63 --------- Notice: Undefined offset: 1 in /in/9FZUP on line 63 fileContents:null --------- Notice: Undefined offset: 1 in /in/9FZUP on line 63 --------- Notice: Undefined offset: 1 in /in/9FZUP on line 63 Array ( [0] => Opening connection to the database [1] => Validating client's account [2] => Reading original document details from database [3] => Reading Header from Database [4] => Reading Line Items from Database [5] => Reading Party Contacts from Database [6] => Constructing Interchange [7] => Constructing Request For Quote [8] => Constructing Dates [9] => Constructing References [10] => Constructing Comments [11] => Constructing Parties [12] => Constructing Line Items [13] => Saving original document content to file - raw [14] => Found 1 possible RFQ matches with a Reference No.: [15] => RFQ with Internal Ref No.: 12884046 [16] => RFQ 12963337 will now be compared with the list of [17] => Comparing RFQ 12963337 with RFQ 12884046 [18] => Reading Header from Database [19] => Reading Line Items from Database [20] => Reading Party Contacts from Database [21] => Constructing Interchange [22] => Constructing Request For Quote [23] => Constructing Dates [24] => Constructing References [25] => Constructing Comments [26] => Constructing Parties [27] => Constructing Line Items [28] => Doc Changed on [29] => Electric motor, Vertical mounted, Type- 4AP [30] => Committing database transaction [31] => Closing connection to the database )
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/9FZUP on line 55 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/9FZUP on line 58 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/9FZUP on line 58 resultCode:NoOp errorMessage:null processMessage:2014-08-08 02:18:01:659 INFO begin appName=ixp_app appVersion=2012_11_v01 integrationCode= clientId=999999 userName=autosuggest1 docId=12963337 docType=RFQ recipientId=58992 encodingTypeCode=UTF-8 2014-08-08 02:18:01:659 DEBUG Opening connection to the database 2014-08-08 02:18:01:660 DEBUG Validating client's account 2014-08-08 02:18:01:668 DEBUG Reading original document details from database 2014-08-08 02:18:01:668 DEBUG Reading Header from Database 2014-08-08 02:18:01:671 DEBUG Reading Line Items from Database 2014-08-08 02:18:01:673 DEBUG Reading Party Contacts from Database 2014-08-08 02:18:01:675 DEBUG Constructing Interchange 2014-08-08 02:18:01:675 DEBUG Constructing Request For Quote 2014-08-08 02:18:01:678 DEBUG Constructing Dates 2014-08-08 02:18:01:678 DEBUG Constructing References 2014-08-08 02:18:01:678 DEBUG Constructing Comments 2014-08-08 02:18:01:679 DEBUG Constructing Parties 2014-08-08 02:18:01:679 DEBUG Constructing Line Items 2014-08-08 02:18:01:680 DEBUG Saving original document content to file - raw 2014-08-08 02:18:01:705 INFO Found 1 possible RFQ matches with a Reference No.: 14/440 that was forwarded by Match Buyer 11107 to Supplier 58992 2014-08-08 02:18:01:705 INFO RFQ with Internal Ref No.: 12884046 2014-08-08 02:18:01:706 INFO RFQ 12963337 will now be compared with the list of possible RFQ matches 2014-08-08 02:18:01:706 INFO Comparing RFQ 12963337 with RFQ 12884046 2014-08-08 02:18:01:706 DEBUG Reading Header from Database 2014-08-08 02:18:01:708 DEBUG Reading Line Items from Database 2014-08-08 02:18:01:720 DEBUG Reading Party Contacts from Database 2014-08-08 02:18:01:727 DEBUG Constructing Interchange 2014-08-08 02:18:01:728 DEBUG Constructing Request For Quote 2014-08-08 02:18:01:730 DEBUG Constructing Dates 2014-08-08 02:18:01:730 DEBUG Constructing References 2014-08-08 02:18:01:731 DEBUG Constructing Comments 2014-08-08 02:18:01:731 DEBUG Constructing Parties 2014-08-08 02:18:01:732 DEBUG Constructing Line Items 2014-08-08 02:18:01:733 DEBUG Doc Changed on //Interchange/RequestForQuote/LineItem/@Description 2014-08-08 02:18:01:733 DEBUG Electric motor, Vertical mounted, Type- 4AP 71-45, 3phase, 440 Volts, 60 Hz, 0.29 KW, 0.8 Amp & 1656 RPM, Fan Motor, 3-phase, 440Volts, 0.8 Amp, 60 Hz, 0.29KW & RPM-1656 not equal to 2/2 way solenoid valve- servo assisted for emergency fire pump, Maker: Burkert, Details: 5281 A 13.0 NBR, MS, G 1/2, PNO 0.2 - 16 bar, 230 V, 50-60 Hz8 W, G 1/2, PNO 0.2-16 Bar 2014-08-08 02:18:01:733 DEBUG Committing database transaction 2014-08-08 02:18:01:733 DEBUG Closing connection to the database 2014-08-08 02:18:01:734 INFO end status=NOOP filename=999999_20140808021801_f90e96c9 elapsed=74ms fileContents:null PHP_EOL---------PHP_EOL Notice: Undefined offset: 1 in /in/9FZUP on line 63 Array ( )