3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = "/\\s/"; $characters = array( 0x09 /*HT*/, 0x0A /*LF*/, 0x0B /*VT*/, 0x0C /*FF*/, 0x0D /*CR*/, 0x20 /*SP*/ ); foreach ($characters as $code) { echo sprintf("0x%02X: %s\n", $code, preg_match($pattern, chr($code))); }
Output for git.master, git.master_jit, rfc.property-hooks
0x09: 1 0x0A: 1 0x0B: 1 0x0C: 1 0x0D: 1 0x20: 1

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