3v4l.org

run code in 300+ PHP versions simultaneously
<?php $parsedURL = parse_url('https://static01.nyt.com/images/2018/08/28/us/28vote_print/28vote_xp-articleLarge.jpg?quality=75&auto=webp&disable=upscale'); $pathinfo = pathinfo($parsedURL['path']); $filename = $pathinfo['filename']; $extension = $pathinfo['extension']; var_dump($filename, $extension);
Output for git.master, git.master_jit, rfc.property-hooks
string(22) "28vote_xp-articleLarge" string(3) "jpg"

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:
32.17 ms | 405 KiB | 5 Q