3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "706AN=0,503-PP=0,504-PP=0,519=0,606BOX=0,417=2"; echo preg_replace( '#([^=]+)=(\d+),?#', "Code \$1 has quantity \$2\n", $string );
Output for git.master_jit, git.master
Code 706AN has quantity 0 Code 503-PP has quantity 0 Code 504-PP has quantity 0 Code 519 has quantity 0 Code 606BOX has quantity 0 Code 417 has quantity 2

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:
47.26 ms | 856 KiB | 4 Q