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 .= dec2hex(ord($s[$i])) . ' '; } return $h; }
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function dec2hex() in /in/cQmQQ:10 Stack trace: #0 /in/cQmQQ(3): hex('\x0F\x0F?\x1F\x0F\x0E\x0F\x1E\xC3\x83') #1 {main} thrown in /in/cQmQQ on line 10
Process exited with code 255.

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