3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = preg_replace_callback('/(My name is :(\d+);)/', function($matches) { if ($matches[2] < 254464) { return ''; } return $matches[1]; }, 'My name is :13; My name is :254465; My name is :39;'); var_dump($foo);
Output for git.master, git.master_jit, rfc.property-hooks
string(21) " My name is :254465; "

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.87 ms | 1835 KiB | 4 Q