3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f= fn($a)=>preg_replace('/\d+/','^{$0}',normalizer_normalize("\\$$a\\$",8)); echo $f('x')."\n"; echo $f('xyz')."\n"; echo $f('x²')."\n"; echo $f('x²¹')."\n"; echo $f('x²yz²')."\n"; echo $f('xy¹¹z')."\n"; echo $f('x⁴')."\n"; echo $f('x⁶⁰')."\n";
Output for git.master, git.master_jit, rfc.property-hooks
\$x\$ \$xyz\$ \$x^{2}\$ \$x^{21}\$ \$x^{2}yz^{2}\$ \$xy^{11}z\$ \$x^{4}\$ \$x^{60}\$

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:
28.45 ms | 401 KiB | 8 Q