3v4l.org

run code in 500+ PHP versions simultaneously
<?php $subject = '1234567890'; preg_replace_callback( '#^([a-z]+)$|^([0-9]+)$#', function ($m) { var_dump($m); return null === $m[1] ? '1' : 'a'; }, $subject, 1, $count, PREG_UNMATCHED_AS_NULL );
Output for rfc.property-hooks, git.master, git.master_jit
array(3) { [0]=> string(10) "1234567890" [1]=> NULL [2]=> string(10) "1234567890" }

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:
98.07 ms | 1294 KiB | 4 Q