3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Have to double backslash to produce an actual single backslash $data = '\\u1F60A'; // UTF-8 encoding for \ is 5C -- string only has one echo bin2hex($data), PHP_EOL; // Display will differ depending on serialisation being used var_dump($data); print_r($data); echo PHP_EOL; var_export($data); echo PHP_EOL; echo json_encode($data), PHP_EOL;
Output for git.master, git.master_jit, rfc.property-hooks
5c753146363041 string(7) "\u1F60A" \u1F60A '\\u1F60A' "\\u1F60A"

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