3v4l.org

run code in 300+ PHP versions simultaneously
<?php $urls = ['/etc/fstab', '/etc/', 'etc/fstab', 'etc/', '/fstab', 'fstab']; $format = "%-17s %-20s %s\n"; printf($format, '$url', 'basename($url)', 'substr(strrchr("/$url", "/"), 1)'); echo str_repeat('-', 80), PHP_EOL; foreach ($urls as $url) { printf($format, $url, basename($url), substr(strrchr("/$url", '/'), 1)); }
Output for git.master, git.master_jit, rfc.property-hooks
$url basename($url) substr(strrchr("/$url", "/"), 1) -------------------------------------------------------------------------------- /etc/fstab fstab fstab /etc/ etc etc/fstab fstab fstab etc/ etc /fstab fstab fstab fstab fstab fstab

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:
94.83 ms | 406 KiB | 5 Q