3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array( 'ordernumber' => '#ordernumber', 'transactionamount' => '#transactionamount', ); array_walk($data, function(&$value, $key) { $value = sprintf('%s|%s', $key, $value); }); echo implode('|', $data);

preferences:
39.18 ms | 402 KiB | 5 Q