3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "Hello world"; ?> <table> <?php //This is our first loop, changing the R value $r=15; while ($r <= 255) { echo "<tr>"; //Our third loop (B value) occurs 6 times for ever G value, or 216 times $b=15; while ($b <= 255) { //Here we actually generate the color blocks $background = str_pad((string)dechex($r), 2, "0", STR_PAD_LEFT) . F . F . str_pad((string)dechex($b), 2, "0", STR_PAD_LEFT); echo "<td bgcolor=\"#$background\">#$background</td>"; //At the end of each loop we add 3 $b = $b+16; } $r = $r+16; echo "</tr>"; } ?> </table> <p> <a href="http://www.goatella.com">Goatella's Home Page</a><p> <a href="https://github.com/Goatella/PHP-Hex">This script on GitHub</a>
Output for git.master, git.master_jit, rfc.property-hooks
Hello world <table> <tr> Fatal error: Uncaught Error: Undefined constant "F" in /in/Zku49:18 Stack trace: #0 {main} thrown in /in/Zku49 on line 18
Process exited with code 255.

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:
36.11 ms | 401 KiB | 8 Q