3v4l.org

run code in 300+ PHP versions simultaneously
<?php $original = "original"; $generatedPath = array( "/^(?!".$original."$).+$/", '/^(?![0-9]_[0-9]*x[0-9]*$).+$/' ); $test = array('products', 'categories', 'original', '1_22x44','1_22x44a'); foreach ($test as $t) { foreach($generatedPath as $pattern) { if(preg_match($pattern, $t)) { echo $pattern.' : '.$t ."\r\n"; } } }
Output for git.master, git.master_jit, rfc.property-hooks
/^(?!original$).+$/ : products /^(?![0-9]_[0-9]*x[0-9]*$).+$/ : products /^(?!original$).+$/ : categories /^(?![0-9]_[0-9]*x[0-9]*$).+$/ : categories /^(?![0-9]_[0-9]*x[0-9]*$).+$/ : original /^(?!original$).+$/ : 1_22x44 /^(?!original$).+$/ : 1_22x44a /^(?![0-9]_[0-9]*x[0-9]*$).+$/ : 1_22x44a

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:
49.27 ms | 402 KiB | 8 Q