3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = '%\A/(?<directory_prefix>lf|im)/(?<rule>[a-z-_^\d]+)/(?<ire_id>[0-9a-z]+(~\w{6})?)_(?<sty_id>\d+).(?<extension>jpg|gif|png|webp)\Z%i'; $string = '/lf/234/hash/30593/31985724/1/custom_image.png'; $result = preg_match($regex, $string, $matches); var_dump($regex); var_dump($string); var_dump($result); var_dump($matches);
Output for git.master, git.master_jit, rfc.property-hooks
string(131) "%\A/(?<directory_prefix>lf|im)/(?<rule>[a-z-_^\d]+)/(?<ire_id>[0-9a-z]+(~\w{6})?)_(?<sty_id>\d+).(?<extension>jpg|gif|png|webp)\Z%i" string(46) "/lf/234/hash/30593/31985724/1/custom_image.png" int(0) array(0) { }

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:
76.38 ms | 401 KiB | 8 Q