3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php define('URL', '127.0.0.1'); $filename = 'a č o.png'; echo '<a href="' . URL . 'file/show/' . rawurlencode($filename) . '" 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/' . $address . '" target="_blank"> Show file </a>'; //gives link leading to: 127.0.0.1/file/show/a č o.png
Output for 4.3.0 - 5.0.5, 5.1.1 - 7.2.0
<a href="127.0.0.1file/show/a%20%C4%8D%20o.png" target="_blank"> Show file </a> <a href="127.0.0.1file/show/a%20%C4%8D%20o.png" target="_blank"> Show file </a>
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/cfOQZ on line 9
Process exited with code 255.