3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ENDPOINT_DEPOSIT_STATUS = 'transactions/%s'; $endpoint = sprintf($ENDPOINT_DEPOSIT_STATUS, '123sdsfs-dsfsdf-d=dsfsdf=sdf'); var_dump($endpoint); $url = 'https://api.paymentsgate.pro/api/v1/' . $endpoint; $body = 'transaction_id=123sdsfs-dsfsdf-d=dsfsdf=sdf'; var_dump($url); $url .= '?' . $body; var_dump($url);
Output for 8.1.0 - 8.1.31, 8.2.0 - 8.2.26, 8.3.0 - 8.3.15, 8.4.1 - 8.4.2
string(41) "transactions/123sdsfs-dsfsdf-d=dsfsdf=sdf" string(77) "https://api.paymentsgate.pro/api/v1/transactions/123sdsfs-dsfsdf-d=dsfsdf=sdf" string(121) "https://api.paymentsgate.pro/api/v1/transactions/123sdsfs-dsfsdf-d=dsfsdf=sdf?transaction_id=123sdsfs-dsfsdf-d=dsfsdf=sdf"

preferences:
54.52 ms | 407 KiB | 5 Q