3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach(["foo.mp3", "/path/to/foo.mp3", "C:\\path\\to\\foo.mp3"] as $f) { var_dump(pathinfo($f)); }
Output for git.master, git.master_jit, rfc.property-hooks
array(4) { ["dirname"]=> string(1) "." ["basename"]=> string(7) "foo.mp3" ["extension"]=> string(3) "mp3" ["filename"]=> string(3) "foo" } array(4) { ["dirname"]=> string(8) "/path/to" ["basename"]=> string(7) "foo.mp3" ["extension"]=> string(3) "mp3" ["filename"]=> string(3) "foo" } array(4) { ["dirname"]=> string(1) "." ["basename"]=> string(18) "C:\path\to\foo.mp3" ["extension"]=> string(3) "mp3" ["filename"]=> string(14) "C:\path\to\foo" }

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:
59.97 ms | 402 KiB | 8 Q