3v4l.org

run code in 300+ PHP versions simultaneously
<?php $txt = "car -12 and dog 3.1416 and cat 98 and 4,12 and flowers = 0.1 and -75"; echo "EXPECT: car NUM and dog NUM and cat NUM and NUM and flowers = NUM and NUM\n"; echo "OUTPUT: ",preg_replace('~-?\d*[,.]?\d+~','NUM',$txt);
Output for rfc.property-hooks, git.master, git.master_jit
EXPECT: car NUM and dog NUM and cat NUM and NUM and flowers = NUM and NUM OUTPUT: car NUM and dog NUM and cat NUM and NUM and flowers = NUM and NUM

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:
52.49 ms | 1595 KiB | 4 Q