3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arNotic["aps"] = array( "alert"=>"hello", "category"=>"test", 'sound' => 'default', 'badge' => 999 ); $sPayload = JSON_ENCODE($arNotic); $nPayloadLength = strlen($sPayload); $sDeviceToken ='1e82db91c7ceddd72bf33d74ae052ac9c84a065b35148ac401388843106a7485'; $ret = pack('CNNnH*', 1, 1, 0, 32, $sDeviceToken); $ret .= pack('n', $nPayloadLength); $ret .= $sPayload; echo $ret;
Output for git.master, git.master_jit, rfc.property-hooks
 �ۑ����+�=t�*��J[5��8�Cjt�I{"aps":{"alert":"hello","category":"test","sound":"default","badge":999}}

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:
55.73 ms | 401 KiB | 8 Q