3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = ['insert' => 0, 'delete' => 0]; $arr_str = json_encode($arr); $encoded = base64url_encode($arr_str); function base64url_encode($data) { return rtrim(strtr(base64_encode($data), '+/', '-_'), '='); } function base64url_decode($data) { return base64_decode(str_pad(strtr($data, '-_', '+/'), strlen($data) % 4, '=', STR_PAD_RIGHT)); } var_dump($arr, $arr_str, $encoded, base64url_decode($encoded));
Output for git.master_jit, git.master, rfc.property-hooks
array(2) { ["insert"]=> int(0) ["delete"]=> int(0) } string(23) "{"insert":0,"delete":0}" string(31) "eyJpbnNlcnQiOjAsImRlbGV0ZSI6MH0" string(23) "{"insert":0,"delete":0}"

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:
107.43 ms | 405 KiB | 5 Q