3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match_all('/[\x{0080}-\x{ffff}]/u', 'café åäö', $matches, PREG_OFFSET_CAPTURE); var_dump($matches, unpack('N', 'é'));
Output for git.master, git.master_jit
Warning: unpack(): Type N: not enough input, need 4, have 2 in /in/s8jNf on line 5 array(1) { [0]=> array(4) { [0]=> array(2) { [0]=> string(2) "é" [1]=> int(3) } [1]=> array(2) { [0]=> string(2) "å" [1]=> int(6) } [2]=> array(2) { [0]=> string(2) "ä" [1]=> int(8) } [3]=> array(2) { [0]=> string(2) "ö" [1]=> int(10) } } } bool(false)
Output for rfc.property-hooks
Warning: unpack(): Type N: not enough input values, need 4 values but only 2 were provided in /in/s8jNf on line 5 array(1) { [0]=> array(4) { [0]=> array(2) { [0]=> string(2) "é" [1]=> int(3) } [1]=> array(2) { [0]=> string(2) "å" [1]=> int(6) } [2]=> array(2) { [0]=> string(2) "ä" [1]=> int(8) } [3]=> array(2) { [0]=> string(2) "ö" [1]=> int(10) } } } bool(false)

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:
56.16 ms | 402 KiB | 8 Q