3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '\xE2\x80\x99'; var_dump(\preg_replace_callback('#\\\\(?:\\\\|x([0-9a-f]{2}))#i', function($m) { return isset($m[1]) ? \chr(\hexdec($m[1])) : '\\'; }, $str));
Output for git.master, git.master_jit, rfc.property-hooks
string(3) "’"

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.06 ms | 1473 KiB | 4 Q