3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = "txn_status=0|txn_msg=success|txn_err_msg=NA|clnt_txn_ref=969239|tpsl_bank_cd=470|tpsl_txn_id=192630337|txn_amt=1.00|clnt_rqst_meta={itc:NIC~TXN0001~122333~rt14154~8 mar 2014~Payment~forpayment}{custname:test}|tpsl_txn_time=26-12-2015 15:56:20|tpsl_rfnd_id=NA|bal_amt=NA|rqst_token=hdfs-df-jkfhskjfhsjkd|hash=jhdsfs54367jhf"; $final_array = call_user_function_array('array_merge',array_map(function($v){ $a = explode("=",$v); return array($a[0] => $a[1]);},explode('|',$string))); print_r($final_array);
based on XMXd7
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function call_user_function_array() in /in/qll7C:4 Stack trace: #0 {main} thrown in /in/qll7C on line 4
Process exited with code 255.
Output for 5.3.21 - 5.6.28
Fatal error: Call to undefined function call_user_function_array() in /in/qll7C on line 4
Process exited with code 255.