3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?phpecho "<ul>";for ( $layer = 0; $layer < 3; $layer++ ){    echo "<li>The layer number $layer";    echo "<ul>";       for ( $row = 0; $row < 3; $row++ )     {       echo "<li>The row number $row";       echo "<ul>";             for ( $col = 0; $col < 3; $col++ )        {            echo "<li>".$shop[$layer][$row][$col]."</li>";        }         echo "</ul>";        echo "</li>";    }    echo "</ul>";    echo "</li>";}   echo "</ul>";?>
Output for 5.4.0 - 5.4.31
Parse error: syntax error, unexpected '"<ul>"' (T_CONSTANT_ENCAPSED_STRING) in /in/4T3cX on line 1
Process exited with code 255.
Output for 5.3.0 - 5.3.29
<?phpecho "<ul>";for ( $layer = 0; $layer < 3; $layer++ ){    echo "<li>The layer number $layer";    echo "<ul>";       for ( $row = 0; $row < 3; $row++ )     {       echo "<li>The row number $row";       echo "<ul>";             for ( $col = 0; $col < 3; $col++ )        {            echo "<li>".$shop[$layer][$row][$col]."</li>";        }         echo "</ul>";        echo "</li>";    }    echo "</ul>";    echo "</li>";}   echo "</ul>";?>