3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php highlight_file('/etc/hosts');
based on 2qmP0
Output for 5.3.19 - 7.2.0
<code><span style="color: #000000"> #<br />#&nbsp;/etc/hosts:&nbsp;static&nbsp;lookup&nbsp;table&nbsp;for&nbsp;host&nbsp;names<br />#<br /><br />#&lt;ip-address&gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;hostname.domain.org&gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;hostname&gt;<br />127.0.0.1&nbsp;&nbsp;&nbsp;&nbsp;localhost.localdomain&nbsp;&nbsp;&nbsp;&nbsp;localhost<br />::1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;localhost.localdomain&nbsp;&nbsp;&nbsp;&nbsp;localhost<br /><br />#&nbsp;End&nbsp;of&nbsp;file<br /></span> </code>