3v4l.org

run code in 300+ PHP versions simultaneously
<?php highlight_file('/etc/hosts');
Output for 8.3.0 - 8.3.6
<pre><code style="color: #000000"># Static table lookup for hostnames. # See hosts(5) for details. </code></pre>
Output for 7.2.29 - 7.2.33, 7.3.16 - 7.3.33, 7.4.3 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18
<code><span style="color: #000000"> #&nbsp;Static&nbsp;table&nbsp;lookup&nbsp;for&nbsp;hostnames.<br />#&nbsp;See&nbsp;hosts(5)&nbsp;for&nbsp;details.<br /></span> </code>
Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.10, 7.2.0, 7.4.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>
Output for 7.1.20, 7.2.6
Warning: highlight_file(): open_basedir restriction in effect. File(/etc/hosts) is not within the allowed path(s): (/tmp:/in) in /in/mVtQh on line 3

preferences:
184.99 ms | 401 KiB | 183 Q