3v4l.org

run code in 300+ PHP versions simultaneously
<?php $edition[] = 'Vol.123'; $edition[] = 'Edition 1920'; $edition[] = 'Volume 951'; $edition[] = 'Release A20'; $edition[] = 'Unknown data'; $editionFormats = ['Vol','Volume','Edition','Release']; $pattern = implode('|', $editionFormats); foreach ($edition as $e) { if (preg_match('/' . $pattern. '/', $e)) { echo $e . ' matches' . PHP_EOL; } else { echo $e . ' NOT matches' . PHP_EOL; } }
Output for git.master, git.master_jit, rfc.property-hooks
Vol.123 matches Edition 1920 matches Volume 951 matches Release A20 matches Unknown data NOT matches

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:
41.19 ms | 1501 KiB | 4 Q