3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $res = 'RESULT: OK RESULT_PS: FINISHED RESULT_CODE: 000 3DSECURE: NOTPARTICIPATED RRN: 332216778155 APPROVAL_CODE: 527628 CARD_NUMBER: 5***********8817 MRCH_TRANSACTION_ID: 178'; preg_match( '/RESULT: ([A-Z]+) RESULT_PS: ([A-Z]+) RESULT_CODE: ([0-9]+) 3DSECURE: ([A-Z]+) RRN: ([0-9]+) APPROVAL_CODE: ([0-9]+) CARD_NUMBER: ([0-9\*]+) MRCH_TRANSACTION_ID: ([0-9]+)/i', $result_curl, $result); print_r($result);
Output for 7.0.0 - 7.1.0
Notice: Undefined variable: result_curl in /in/qU14G on line 5 Array ( )
Output for hhvm-3.12.0
Notice: Undefined variable: result_curl in /in/qU14G on line 7 Warning: preg_match() expects parameter 2 to be string, null given in /in/qU14G on line 7
Output for hhvm-3.10.0
Notice: Undefined variable: result_curl in /in/qU14G on line 7 Array ( )
Output for 5.0.4 - 5.6.28
Notice: Undefined variable: result_curl in /in/qU14G on line 6 Array ( )
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: result_curl in /in/qU14G on line 6 Array ( )