3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = <<<JSON { "event_type": "IncomingCallEnd", "account_id": 55555, "did_num": "88001234567", "did": "7123456789", "call_id": "1588984514.9676405", "abon": "103", "billsec": "19", "secret": "4ff8rZbTZ0TllXL" } JSON; $jsonString = $json; $call = json_decode($jsonString); $call->did_num = substr_replace(trim($call->did_num),'7',0,1); print_r($call); print_r($call->did_num);
Output for git.master, git.master_jit, rfc.property-hooks
stdClass Object ( [event_type] => IncomingCallEnd [account_id] => 55555 [did_num] => 78001234567 [did] => 7123456789 [call_id] => 1588984514.9676405 [abon] => 103 [billsec] => 19 [secret] => 4ff8rZbTZ0TllXL ) 78001234567

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
26.1 ms | 406 KiB | 5 Q