3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = json_decode('{"a": "\u000f\u000f?\u001f\u000f\u000e\u000f\u001e\u00c3"}')->a; var_dump(hex($str)); $str = preg_replace('/[\x00-\x19\x7f]/', '', $str); var_dump(hex($str)); function hex($s) { $h = ''; for ($i = 0; $i < strlen($s); $i++) { $h .= dechex(ord($s[$i])) . ' '; } return $h; }
Output for git.master, git.master_jit, rfc.property-hooks
string(25) "f f 3f 1f f e f 1e c3 83 " string(15) "3f 1f 1e c3 83 "

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