3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match('/^(s3\:\/\/[0-9A-z\-\_\.]+\@[0-9A-z\-\.]+\.com)\/(.*)\/([0-9A-z]+\.(jpg|png|jpeg|gif|bmp))$/', 's3://aqadd.com.ssrmap@s3-eu-west-1.amazonaws.com/listings/17/28/2385fd6a3c3a036c0e41eaf6c6654839.jpg', $matches); list($path, $endpoint, $directory, $filename, $ext) = $matches; var_dump($filename); var_dump($directory);
Output for git.master, git.master_jit, rfc.property-hooks
string(36) "2385fd6a3c3a036c0e41eaf6c6654839.jpg" string(14) "listings/17/28"

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