3v4l.org

run code in 500+ PHP versions simultaneously
<?php $path = "item365141"; preg_match( '/^\/*(?:(item|swatch)\/+)?(?:([\w|\-]+)\/+)?([\w|\-]+)(?:\.([a-z|A-Z]{3,4}))?$/', $path, $matches); print_r($matches);
Output for master
Array ( [0] => item365141 [1] => [2] => [3] => item365141 )

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:
26.35 ms | 1163 KiB | 7 Q