3v4l.org

run code in 300+ PHP versions simultaneously
<?php $word = "רחוב אלסלבדור 41 דירה 84 ירושלים"; $revd = preg_replace_callback('#([א-ת]+)#', 'rev_first', $word); var_dump($revd);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught TypeError: preg_replace_callback(): Argument #2 ($callback) must be a valid callback, function "rev_first" not found or invalid function name in /in/AduaR:4 Stack trace: #0 /in/AduaR(4): preg_replace_callback('#([\xD7\x90-\xD7\xAA]+)#', 'rev_first', '\xD7\xA8\xD7\x97\xD7\x95\xD7\x91 \xD7\x90\xD7\x9C\xD7\xA1...') #1 {main} thrown in /in/AduaR on line 4
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:
36.66 ms | 401 KiB | 8 Q