3v4l.org

run code in 300+ PHP versions simultaneously
<?php class thisClass { public $files = array('a č o.png','a č o.png','a č o.png'); } $foo = new thisClass(); define('URL', '127.0.0.1/'); foreach($foo->files as $key => $value){ echo '<a href="' . URL . 'file/show/' . rawurlencode($foo->files[$key]) . '" target="_blank"> Show file </a>' . "\n"; //gives link leading to: 127.0.0.1/file%2Fshow%2Fa č o.png $address = rawurlencode($filename); echo '<a href="' . URL . 'file/show/' . $foo->files[$key] . '" target="_blank"> Show file </a>'; //gives link leading to: 127.0.0.1/file/show/a č o.png } ?>
Output for git.master, git.master_jit, rfc.property-hooks
<a href="127.0.0.1/file/show/a%20%C4%8D%20o.png" target="_blank"> Show file </a> Warning: Undefined variable $filename in /in/0tgOX on line 11 Deprecated: rawurlencode(): Passing null to parameter #1 ($string) of type string is deprecated in /in/0tgOX on line 11 <a href="127.0.0.1/file/show/a č o.png" target="_blank"> Show file </a><a href="127.0.0.1/file/show/a%20%C4%8D%20o.png" target="_blank"> Show file </a> Warning: Undefined variable $filename in /in/0tgOX on line 11 Deprecated: rawurlencode(): Passing null to parameter #1 ($string) of type string is deprecated in /in/0tgOX on line 11 <a href="127.0.0.1/file/show/a č o.png" target="_blank"> Show file </a><a href="127.0.0.1/file/show/a%20%C4%8D%20o.png" target="_blank"> Show file </a> Warning: Undefined variable $filename in /in/0tgOX on line 11 Deprecated: rawurlencode(): Passing null to parameter #1 ($string) of type string is deprecated in /in/0tgOX on line 11 <a href="127.0.0.1/file/show/a č o.png" target="_blank"> Show file </a>

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