3v4l.org

run code in 300+ PHP versions simultaneously
<?php $txt = "resultCode:NoOp errorMessage:null processMessage:2014-08-07 03:33:01:705 INFO begin appName=ixp_app appVersion=2012_11_v01 integrationCode= clientId=999999 userName=autosuggest1 docId=12956633 docType=RFQ recipientId=54784 encodingTypeCode=UTF-8 2014-08-07 03:33:01:706 DEBUG Opening connection to the database 2014-08-07 03:33:01:706 DEBUG Validating client's account 2014-08-07 03:33:01:712 DEBUG Reading original document details from database 2014-08-07 03:33:01:712 DEBUG Reading Header from Database 2014-08-07 03:33:01:715 DEBUG Reading Line Items from Database 2014-08-07 03:33:01:719 DEBUG Reading Party Contacts from Database 2014-08-07 03:33:01:721 DEBUG Constructing Interchange 2014-08-07 03:33:01:721 DEBUG Constructing Request For Quote 2014-08-07 03:33:01:724 DEBUG Constructing Dates 2014-08-07 03:33:01:725 DEBUG Constructing References 2014-08-07 03:33:01:725 DEBUG Constructing Comments 2014-08-07 03:33:01:725 DEBUG Constructing Parties 2014-08-07 03:33:01:726 DEBUG Constructing Line Items 2014-08-07 03:33:01:726 DEBUG Saving original document content to file - raw 2014-08-07 03:33:01:740 INFO Found 1 possible RFQ matches with a Reference No.: 14/449 that was forwarded by Match Buyer 11107 to Supplier 54784 2014-08-07 03:33:01:740 INFO RFQ with Internal Ref No.: 12870348 2014-08-07 03:33:01:740 INFO RFQ 12956633 will now be compared with the list of possible RFQ matches 2014-08-07 03:33:01:740 INFO Comparing RFQ 12956633 with RFQ 12870348 2014-08-07 03:33:01:740 DEBUG Reading Header from Database 2014-08-07 03:33:01:742 DEBUG Reading Line Items from Database 2014-08-07 03:33:01:744 DEBUG Reading Party Contacts from Database 2014-08-07 03:33:01:754 DEBUG Constructing Interchange 2014-08-07 03:33:01:754 DEBUG Constructing Request For Quote 2014-08-07 03:33:01:756 DEBUG Constructing Dates 2014-08-07 03:33:01:756 DEBUG Constructing References 2014-08-07 03:33:01:756 DEBUG Constructing Comments 2014-08-07 03:33:01:756 DEBUG Constructing Parties 2014-08-07 03:33:01:757 DEBUG Constructing Line Items 2014-08-07 03:33:01:758 DEBUG Doc Changed on Actual Line Item Count 2014-08-07 03:33:01:758 DEBUG 1 not equal to 7 2014-08-07 03:33:01:758 DEBUG Committing database transaction 2014-08-07 03:33:01:758 DEBUG Closing connection to the database 2014-08-07 03:33:01:759 INFO end status=NOOP filename=999999_20140807033301_7b536076 elapsed=53ms fileContents:null "; $lines = explode(PHP_EOL, $txt); $userMessages= 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]; $words = explode(' ', $message); if (empty($words)) { // single words are also skipped continue; } if (in_array(strtolower($words[0]), array( 'opening', 'validating', 'reading', 'constructing', 'saving', 'found', 'rfq', 'comparing', 'committing', 'closing', 'end' ))) { // skip know technical message continue; } $userMessages[] = $message; } print_r($userMessages);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 37
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 37
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 17
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 27
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 27
2 jumps found. (Code = 43) Position 1 = 33, Position 2 = 34
Branch analysis from position: 33
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 34
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 37
filename:       /in/X1Rvv
function name:  (null)
number of ops:  42
compiled vars:  !0 = $txt, !1 = $lines, !2 = $userMessages, !3 = $line, !4 = $matches, !5 = $message, !6 = $words
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'resultCode%3ANoOp%0AerrorMessage%3Anull%0AprocessMessage%3A2014-08-07+03%3A33%3A01%3A705+INFO+begin+appName%3Dixp_app%0AappVersion%3D2012_11_v01+integrationCode%3D+clientId%3D999999+userName%3Dautosuggest1%0AdocId%3D12956633+docType%3DRFQ+recipientId%3D54784+encodingTypeCode%3DUTF-8+%0A2014-08-07+03%3A33%3A01%3A706+DEBUG+Opening+connection+to+the+database%0A2014-08-07+03%3A33%3A01%3A706+DEBUG+Validating+client%27s+account%0A2014-08-07+03%3A33%3A01%3A712+DEBUG+Reading+original+document+details+from+database%0A2014-08-07+03%3A33%3A01%3A712+DEBUG+Reading+Header+from+Database%0A2014-08-07+03%3A33%3A01%3A715+DEBUG+Reading+Line+Items+from+Database%0A2014-08-07+03%3A33%3A01%3A719+DEBUG+Reading+Party+Contacts+from+Database%0A2014-08-07+03%3A33%3A01%3A721+DEBUG+Constructing+Interchange%0A2014-08-07+03%3A33%3A01%3A721+DEBUG+Constructing+Request+For+Quote%0A2014-08-07+03%3A33%3A01%3A724+DEBUG+Constructing+Dates%0A2014-08-07+03%3A33%3A01%3A725+DEBUG+Constructing+References%0A2014-08-07+03%3A33%3A01%3A725+DEBUG+Constructing+Comments%0A2014-08-07+03%3A33%3A01%3A725+DEBUG+Constructing+Parties%0A2014-08-07+03%3A33%3A01%3A726+DEBUG+Constructing+Line+Items%0A2014-08-07+03%3A33%3A01%3A726+DEBUG+Saving+original+document+content+to+file+-+raw%0A2014-08-07+03%3A33%3A01%3A740+INFO+Found+1+possible+RFQ+matches+with+a+Reference+No.%3A%0A14%2F449+that+was+forwarded+by+Match+Buyer+11107+to+Supplier+54784%0A2014-08-07+03%3A33%3A01%3A740+INFO+RFQ+with+Internal+Ref+No.%3A+12870348%0A2014-08-07+03%3A33%3A01%3A740+INFO+RFQ+12956633+will+now+be+compared+with+the+list+of%0Apossible+RFQ+matches%0A2014-08-07+03%3A33%3A01%3A740+INFO+Comparing+RFQ+12956633+with+RFQ+12870348%0A2014-08-07+03%3A33%3A01%3A740+DEBUG+Reading+Header+from+Database%0A2014-08-07+03%3A33%3A01%3A742+DEBUG+Reading+Line+Items+from+Database%0A2014-08-07+03%3A33%3A01%3A744+DEBUG+Reading+Party+Contacts+from+Database%0A2014-08-07+03%3A33%3A01%3A754+DEBUG+Constructing+Interchange%0A2014-08-07+03%3A33%3A01%3A754+DEBUG+Constructing+Request+For+Quote%0A2014-08-07+03%3A33%3A01%3A756+DEBUG+Constructing+Dates%0A2014-08-07+03%3A33%3A01%3A756+DEBUG+Constructing+References%0A2014-08-07+03%3A33%3A01%3A756+DEBUG+Constructing+Comments%0A2014-08-07+03%3A33%3A01%3A756+DEBUG+Constructing+Parties%0A2014-08-07+03%3A33%3A01%3A757+DEBUG+Constructing+Line+Items%0A2014-08-07+03%3A33%3A01%3A758+DEBUG+Doc+Changed+on+Actual+Line+Item+Count%0A2014-08-07+03%3A33%3A01%3A758+DEBUG+1+not+equal+to+7%0A2014-08-07+03%3A33%3A01%3A758+DEBUG+Committing+database+transaction%0A2014-08-07+03%3A33%3A01%3A758+DEBUG+Closing+connection+to+the+database%0A2014-08-07+03%3A33%3A01%3A759+INFO+end+status%3DNOOP%0Afilename%3D999999_20140807033301_7b536076+elapsed%3D53ms%0A%0AfileContents%3Anull%0A%0A%0A'
   50     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%0A'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $8      
          5        ASSIGN                                                   !1, $8
   51     6        ASSIGN                                                   !2, <array>
   52     7      > FE_RESET_R                                       $11     !1, ->37
          8    > > FE_FETCH_R                                               $11, !3, ->37
   55     9    >   INIT_FCALL                                               'preg_match'
   56    10        SEND_VAL                                                 '%2F%5E%5Cd%7B4%7D-%5Cd%7B2%7D-%5Cd%7B2%7D+%5Cd%7B2%7D%3A%5Cd%7B2%7D%3A%5Cd%7B2%7D%3A%5Cd%7B3%7D+%5Cw%2B+%28.%2A%29%24%2F'
         11        SEND_VAR                                                 !3
         12        SEND_REF                                                 !4
         13        DO_ICALL                                         $12     
         14        BOOL_NOT                                         ~13     $12
         15      > JMPZ                                                     ~13, ->17
   59    16    > > JMP                                                      ->8
   62    17    >   FETCH_DIM_R                                      ~14     !4, 1
         18        ASSIGN                                                   !5, ~14
   63    19        INIT_FCALL                                               'explode'
         20        SEND_VAL                                                 '+'
         21        SEND_VAR                                                 !5
         22        DO_ICALL                                         $16     
         23        ASSIGN                                                   !6, $16
   64    24        ISSET_ISEMPTY_CV                                         !6
         25      > JMPZ                                                     ~18, ->27
   66    26    > > JMP                                                      ->8
   69    27    >   INIT_FCALL                                               'strtolower'
         28        FETCH_DIM_R                                      ~19     !6, 0
         29        SEND_VAL                                                 ~19
         30        DO_ICALL                                         $20     
         31        IN_ARRAY                                                 $20, <array>
         32      > JMPZ                                                     ~21, ->34
   83    33    > > JMP                                                      ->8
   86    34    >   ASSIGN_DIM                                               !2
         35        OP_DATA                                                  !5
   52    36      > JMP                                                      ->8
         37    >   FE_FREE                                                  $11
   88    38        INIT_FCALL                                               'print_r'
         39        SEND_VAR                                                 !2
         40        DO_ICALL                                                 
         41      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.03 ms | 1392 KiB | 21 Q