3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * @link http://www.php.net/manual/en/splfileinfo.getfilename.php */ $paths = array( '/path/to/', 'http://example.com/path/to/', 'http://example.com/path/' , 'http://example.com/' , 'http://' , 'http:/', ); foreach ($paths as $path) { $info = new SplFileInfo($path); printf( "%' -32s: %' -32s %' -12s %' -12s\n", $path, $info->getPathname() , $info->getBasename(), $info->getFilename() ); printf( "%' -32s %' -32s %' -12s", '', dirname($path), basename($path) ); echo "\n"; }
Output for git.master, git.master_jit
/path/to/ : /path/to to to /path to http://example.com/path/to/ : http://example.com/path/to to to http://example.com/path to http://example.com/path/ : http://example.com/path path path http://example.com path http://example.com/ : http://example.com example.com example.com http: example.com http:// : http:/ . http: http:/ : http: http: http: . http:
Output for rfc.property-hooks
/path/to/ : /path/to to to /path to http://example.com/path/to/ : http://example.com/path/to to to http://example.com/path to http://example.com/path/ : http://example.com/path path path http://example.com path http://example.com/ : http://example.com example.com example.com http: example.com http:// : http: http: http: . http: http:/ : http: http: http: . http:

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:
45.32 ms | 403 KiB | 8 Q